Evas textblock: Fix it->x value during layout
authorDaniel Hirt <daniel.hirt@samsung.com>
Mon, 29 Jun 2015 10:21:55 +0000 (13:21 +0300)
committerDaniel Hirt <daniel.hirt@samsung.com>
Mon, 29 Jun 2015 13:50:32 +0000 (16:50 +0300)
This updates it->x when visiting each item in the line layout code,
as it was always 0, even when it was used during item rollback.
Fortunately, in the above case a 0 value was actually expected, so
this does not actually affect current behavior.

This fix is mainly for consistency and future development.

src/lib/evas/canvas/evas_object_textblock.c

index 1325924..6351b1f 100644 (file)
@@ -4854,6 +4854,7 @@ _layout_par(Ctxt *c)
              continue;
           }
 
+        it->x = c->x;
         if (it->type == EVAS_TEXTBLOCK_ITEM_TEXT)
           {
              _layout_item_ascent_descent_adjust(c->obj, &c->ascent,