Evas textblock: Fixed a bug with format invalidation.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Jul 2011 11:27:25 +0000 (11:27 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 27 Jul 2011 11:27:25 +0000 (11:27 +0000)
With the following example text: "aa<b>a <i>bbb</i> ccc", adding a </b>
at the end wouldn't cause an invalidation to happen as expected.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61805 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index c0e4a1b..72d84ae 100644 (file)
@@ -3851,10 +3851,10 @@ _format_changes_invalidate_text_nodes(Ctxt *c)
                                      fnode2->orig_format, fstr, fstr_len))
                               {
                                  fstack = eina_list_remove_list(fstack, i);
-                                 balance--;
                                  break;
                               }
                          }
+                       balance--;
                     }
 
                   if (!fstack)