forked from enlightenment/efl
edje entry - fix format appending with just empty strings
this fixes CID 1039647 - it caught a real bug. we were not skipping out on an empty + or - push/pop format fomamnt if it had nothing there. not actually something people do - but possible. fix!
This commit is contained in:
parent
53ddf83842
commit
bc6eb8fcec
|
@ -314,7 +314,7 @@ _text_filter_format_prepend(Edje *ed, Entry *en, Evas_Textblock_Cursor *c, const
|
|||
{
|
||||
s++;
|
||||
while (*s == ' ') s++;
|
||||
if (!s)
|
||||
if (!*s)
|
||||
{
|
||||
free(text2);
|
||||
return;
|
||||
|
@ -332,7 +332,7 @@ _text_filter_format_prepend(Edje *ed, Entry *en, Evas_Textblock_Cursor *c, const
|
|||
{
|
||||
s++;
|
||||
while (*s == ' ') s++;
|
||||
if (!s)
|
||||
if (!*s)
|
||||
{
|
||||
free(text2);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue