Evas textblock: Fix selection with bidi text.
authorTom Hacohen <tom@stosb.com>
Wed, 29 Jan 2014 13:25:21 +0000 (13:25 +0000)
committerTom Hacohen <tom@stosb.com>
Wed, 29 Jan 2014 13:27:45 +0000 (13:27 +0000)
commit22813f5b5218a02273fefca3f61fde970ce47d75
tree81ce9b5238725d0e845894a67184e59e061e300a
parenta5691571e3ff1de88cf0beccd86fbf7ca24535b8
Evas textblock: Fix selection with bidi text.

This is a regression introduced in
548e548632333f5ef533079a7aaa54aadd20ef8d.

This is really bad, and essentially broke selection geometry for bidi
text. Very serious.

The problematic code assumed that the range comparison for the items
assumed the item marked with 1 is always logically before the item marked
with 2, which is just not true.
src/lib/evas/canvas/evas_object_textblock.c