Evas textblock: Don't allow overwriting the format stack.
authorTom Hacohen <tom@stosb.com>
Wed, 11 May 2011 08:35:09 +0000 (08:35 +0000)
committerTom Hacohen <tom@stosb.com>
Wed, 11 May 2011 08:35:09 +0000 (08:35 +0000)
SVN revision: 59320

legacy/evas/src/lib/canvas/evas_object_textblock.c

index 07687eb..b920ad7 100644 (file)
@@ -2953,10 +2953,12 @@ _layout_do_format(const Evas_Object *obj __UNUSED__, Ctxt *c,
 
    if (!handled)
      {
+        Eina_Bool push_fmt = EINA_FALSE;
         if (s[0] == '+')
           {
              fmt = _layout_format_push(c, fmt);
              s++;
+             push_fmt = EINA_TRUE;
           }
         else if (s[0] == '-')
           {