Evas textblock: Added a small fix to valign.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 14 Jul 2011 12:47:17 +0000 (12:47 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 14 Jul 2011 12:47:17 +0000 (12:47 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61366 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 043c040..47c02d6 100644 (file)
@@ -8467,7 +8467,12 @@ evas_object_textblock_render(Evas_Object *obj, void *output, void *context, void
                    * yoff = (itr->type == EVAS_TEXTBLOCK_ITEM_TEXT) ? \
                      _ITEM_TEXT(itr)->baseline : ln->baseline; */ \
                   if (itr->format->valign != -1.0) \
-                     yoff += itr->format->valign * (ln->h - itr->h); \
+                    { \
+                       /* Until I fix the FIXME above. */ \
+                       yoff = (itr->type == EVAS_TEXTBLOCK_ITEM_TEXT) ? \
+                          _ITEM_TEXT(itr)->baseline : ln->baseline; \
+                       yoff += itr->format->valign * (ln->h - itr->h); \
+                    } \
                   if (clip) \
                     { \
                        if ((obj->cur.geometry.x + x + ln->x + itr->x + itr->w) < (cx - 20)) \