Evas textblock: Fixed a possible bug with generic poppers removal.

Patch by Hyoyoung Chang.

SVN revision: 66798
This commit is contained in:
Tom Hacohen 2012-01-03 14:33:35 +00:00
parent 7797005ea1
commit 2d1166d846
1 changed files with 2 additions and 2 deletions

View 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);