Evas textblock: Fixed a possible bug with generic poppers removal.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 3 Jan 2012 14:33:35 +0000 (14:33 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 3 Jan 2012 14:33:35 +0000 (14:33 +0000)
Patch by Hyoyoung Chang.

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

src/lib/canvas/evas_object_textblock.c

index 0646eb4..8c530b4 100644 (file)
@@ -6333,8 +6333,8 @@ _evas_textblock_node_format_remove_matching(Evas_Object_Textblock *o,
              Evas_Object_Textblock_Node_Format *fnode;
              size_t fstr_len;
              fstr_len = strlen(fstr);
-             /* Generic popper, just pop */
-             if (((fstr[0] == ' ') && !fstr[1]) || !fstr[0])
+             /* Generic popper, just pop (if there's anything to pop). */
+             if (formats && (((fstr[0] == ' ') && !fstr[1]) || !fstr[0]))
                {
                   fnode = eina_list_data_get(formats);
                   formats = eina_list_remove_list(formats, formats);