textblock: Update visual_pos before calling _size_native_calc_line_finalize.
authorYoungbok Shin <youngb.shin@samsung.com>
Wed, 6 Aug 2014 09:40:02 +0000 (10:40 +0100)
committerTom Hacohen <tom@stosb.com>
Wed, 6 Aug 2014 09:40:02 +0000 (10:40 +0100)
commit7a87f322f4efc3e18d7350765ec747973b13535a
treeac7c4579ecc0e16d3df6ea6fe9e7f79425d7129f
parentd52f122db48c7ee8fea19415d33605735a97bedf
textblock: Update visual_pos before calling _size_native_calc_line_finalize.

Summary:
In items loop of _size_native_calc_line_finalize,
last_it should be replaced with new item according to position.
But, visual_pos is not prepared and it is always zero in the function.
So, we need to update visual_pos.
And when textblock only has LTR text,
we can replace last_it according to item list sequence.
@fix

Test Plan:
It includes test cases using the following test case.
 1. "i<b>。</b>"
 2. "。<b>i</b>"

Reviewers: seoz, woohyun, sohyun, tasn

Subscribers: raster, herdsman, cedric

Differential Revision: https://phab.enlightenment.org/D859
src/lib/evas/canvas/evas_object_textblock.c
src/tests/evas/evas_test_textblock.c