Evas textblock: Fixed compilation with FriBiDi disabled.
authorTom Hacohen <tom@stosb.com>
Mon, 31 Mar 2014 10:41:51 +0000 (11:41 +0100)
committerTom Hacohen <tom@stosb.com>
Mon, 31 Mar 2014 10:41:51 +0000 (11:41 +0100)
This issue was introduced in d175b8aa69c31fc155f05269350f6703e81886b7
during the previous merge window.

Thanks a lot to vtorri for reporting.

src/lib/evas/canvas/evas_object_textblock.c

index 813d479..c977434 100644 (file)
@@ -10364,8 +10364,14 @@ _size_native_calc_line_finalize(const Evas_Object *eo_obj, Eina_List *items,
 loop_advance:
         *w += it->adv;
 
+#ifdef BIDI_SUPPORT
         if (!last_it || (it->visual_pos > last_it->visual_pos))
-           last_it = it;
+#else
+        if (!last_it)
+#endif
+          {
+             last_it = it;
+          }
      }
 
    if (last_it)