Evas textblock: Don't allow overwriting the format stack.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 11 May 2011 08:35:09 +0000 (08:35 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 11 May 2011 08:35:09 +0000 (08:35 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59320 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

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] == '-')
           {