text: Fix the buffer length check on paint

This commit is contained in:
Emmanuele Bassi 2012-01-17 14:21:02 +00:00
parent 9f0ba2da0f
commit 696f9e84c9

View File

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