From 696f9e84c938808c645e66e3d2dd2a78ceafc154 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 17 Jan 2012 14:21:02 +0000 Subject: [PATCH] text: Fix the buffer length check on paint --- clutter/clutter-text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 63b2451..ef24c9c 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -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); -- 2.7.4