[clutter] text: Fix the buffer length check on paint



commit 696f9e84c938808c645e66e3d2dd2a78ceafc154
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Tue Jan 17 14:21:02 2012 +0000

    text: Fix the buffer length check on paint

 clutter/clutter-text.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]