Evas textblock: Fix BiDi text cut-off at the edges.
authorTom Hacohen <tom@stosb.com>
Wed, 20 Aug 2014 14:03:12 +0000 (15:03 +0100)
committerTom Hacohen <tom@stosb.com>
Wed, 20 Aug 2014 14:10:23 +0000 (15:10 +0100)
commit841191d907f7addec4ab8613ddae81f1767f4836
tree41ac00fc5bf5351e71a8d7a1b7f1ae88d89f4f47
parentc8814e49accbd81b7a7e7d8dbfc25a819b9d08de
Evas textblock: Fix BiDi text cut-off at the edges.

This patch fixes an issue causing text to be cut off in some cases.
The problem was that we were calculating line width and alignment before
we did any bidi calculations, which in turn caused us to use the wrong
text items for those calculations.

Many thanks to Daniel Hirt for investigating this deeply, finding all
the nitty-gritty and generally pointing me to where the problem is.
Daniel also provided the test case.
His patch (D1291) was close, but not enough.

Fixes T1496

@Fix
src/lib/evas/canvas/evas_object_textblock.c
src/tests/evas/evas_test_textblock.c