Evas textblock: fix case of own_closer in style_set
authorDaniel Hirt <daniel.hirt@samsung.com>
Thu, 27 Aug 2015 15:20:47 +0000 (18:20 +0300)
committerDaniel Hirt <daniel.hirt@samsung.com>
Thu, 27 Aug 2015 19:59:19 +0000 (22:59 +0300)
commitd6b6a733589b79d7ae021819e11f53cf2819a1a6
tree5e90ed0311ccf8602dcfce4169a60502048239ee
parentf38fffa576178d8c5c2bc4f963ebc02e6731b83a
Evas textblock: fix case of own_closer in style_set

Looks like it was assumed that an fnode->orig_format always ends with a
'/' character if the fnode is an own_closer.
The problem is that a paragraph separator ("ps" and "br" - the latter in
legacy newline mode) is also an own_closer, but might not have '/' at the
end, so decrementing the length is wrong.

This fixes T2654. The example markup had "br" read as "b", which led to
a mismatch with the "font_weight=Bold" tag. Coincidentally, "ps" was not
affected as there was no matching "p" in the style.

@fix
src/lib/evas/canvas/evas_object_textblock.c