summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-05-27 14:18:40 +0100
committerTom Hacohen <tom@stosb.com>2014-05-27 14:20:50 +0100
commit63ee6cf46bad47fe0d05f8891a111def20443c89 (patch)
tree742d2b75efda7782168e617f6b9f32fb4f92d1a2
parent1610b0634566cfcfbd5b572678cd1045224937c7 (diff)
downloadefl-63ee6cf46bad47fe0d05f8891a111def20443c89.tar.gz
Evas textblock: Fix wrong advance calculation when bidi is disabled.
The last_it was not updated correctly with bidi disabled. Thanks to Daniel Hirt for spotting this. @fix
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 1fed2607cf..bc0430d746 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -10320,10 +10320,9 @@ _size_native_calc_line_finalize(const Evas_Object *eo_obj, Eina_List *items,
loop_advance:
*w += it->adv;
+ /* Only conditional if we have bidi support, otherwise, just set it. */
#ifdef BIDI_SUPPORT
if (!last_it || (it->visual_pos > last_it->visual_pos))
-#else
- if (!last_it)
#endif
{
last_it = it;