text: Fix the buffer length check on paint
This commit is contained in:
parent
9f0ba2da0f
commit
696f9e84c9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user