Canvas text: fix corner case in range geometry calc
authorDaniel Hirt <daniel.hirt@samsung.com>
Mon, 11 Jul 2016 16:18:54 +0000 (16:18 +0000)
committerDaniel Hirt <daniel.hirt@samsung.com>
Mon, 11 Jul 2016 16:39:51 +0000 (16:39 +0000)
commit0c2398562687888f36e36d37a876427d9b4408a0
tree989860d8d88e69735827e288ff09fc554993153f
parent8fbb6dbbbb73dc0761ad6b3b5bcf1d1dc36ceef1
Canvas text: fix corner case in range geometry calc

The trivial case of [pos,pos] (i.e. range of length 0) didn't work if there is a
format item in 'pos'.
The condition was fixed to not include such items. The reason it was not
apparent for text items is that these have further handling in the rest of the
code and would've been disposed of.

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