use o->valign.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 30 Mar 2011 11:34:06 +0000 (11:34 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 30 Mar 2011 11:34:06 +0000 (11:34 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@58202 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_textblock.c

index 501879c..14251b6 100644 (file)
@@ -3701,9 +3701,9 @@ _layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_
 
    /* Is this really the place? */
    /* Vertically align the textblock */
-   if ((c->valign > 0.0) && (c->h > c->hmax))
+   if ((o->valign > 0.0) && (c->h > c->hmax))
      {
-        Evas_Coord adjustment = (c->h - c->hmax) * c->valign;
+        Evas_Coord adjustment = (c->h - c->hmax) * o->valign;
         Evas_Object_Textblock_Paragraph *par;
         EINA_INLIST_FOREACH(c->paragraphs, par)
           {