Evas textblock: Fixed a bug in mixed wrapping mode.

SVN revision: 61440
This commit is contained in:
Tom Hacohen 2011-07-17 11:15:18 +00:00
parent 22eb580e59
commit 73a5f2277a
1 changed files with 20 additions and 12 deletions

View File

@ -3266,6 +3266,13 @@ _layout_get_word_mixwrap_common(Ctxt *c, Evas_Object_Textblock_Format *fmt,
/* If we need to find the position after the cutting point */
if ((wrap == line_start) || (wrap_after))
{
if (mixed_wrap)
{
return _layout_get_charwrap(c, fmt, ti,
line_start, breaks);
}
else
{
while (wrap < len)
{
@ -3285,6 +3292,7 @@ _layout_get_word_mixwrap_common(Ctxt *c, Evas_Object_Textblock_Format *fmt,
return -1;
}
}
}
return -1;
}