text: We still have to paint the actor if the cursor is visible

https://bugzilla.gnome.org/show_bug.cgi?id=659116
This commit is contained in:
Rui Matos 2011-09-15 04:50:43 +01:00 committed by Emmanuele Bassi
parent 1883ee13f9
commit 41bd15226f

View File

@ -2009,7 +2009,8 @@ clutter_text_paint (ClutterActor *self)
} }
/* don't bother painting an empty text actor */ /* don't bother painting an empty text actor */
if (priv->text[0] == '\0') if (priv->text[0] == '\0' &&
(!priv->editable || !priv->cursor_visible))
return; return;
clutter_actor_get_allocation_box (self, &alloc); clutter_actor_get_allocation_box (self, &alloc);