forked from enlightenment/efl
edje: handle case when & is not escaped.
SVN revision: 70401
This commit is contained in:
parent
fc00b1b637
commit
09dba3e746
|
@ -1192,6 +1192,7 @@ edje_object_part_text_escaped_set(Evas_Object *obj, const char *part, const char
|
||||||
}
|
}
|
||||||
else if (*p == 0)
|
else if (*p == 0)
|
||||||
{
|
{
|
||||||
|
if (!s) s = esc_start; /* This would happen when there is & that isn't escaped */
|
||||||
eina_strbuf_append_length(sbuf, s, p - s);
|
eina_strbuf_append_length(sbuf, s, p - s);
|
||||||
s = NULL;
|
s = NULL;
|
||||||
}
|
}
|
||||||
|
@ -1201,6 +1202,7 @@ edje_object_part_text_escaped_set(Evas_Object *obj, const char *part, const char
|
||||||
|
|
||||||
if (*p == '&')
|
if (*p == '&')
|
||||||
{
|
{
|
||||||
|
if (!s) s = esc_start; /* This would happen when there is & that isn't escaped */
|
||||||
esc_start = p;
|
esc_start = p;
|
||||||
esc_end = NULL;
|
esc_end = NULL;
|
||||||
eina_strbuf_append_length(sbuf, s, p - s);
|
eina_strbuf_append_length(sbuf, s, p - s);
|
||||||
|
|
Loading…
Reference in New Issue