raster: don't drink and code :).
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@58212
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
/* Vertically align the textblock */
if ((o->valign > 0.0) && (c->h > c->hmax))
{
- if ((o->valign > 0.0) && (c->h > c->hmax))
+ Evas_Coord adjustment = (c->h - c->hmax) * o->valign;
+ Evas_Object_Textblock_Paragraph *par;
+ EINA_INLIST_FOREACH(c->paragraphs, par)
{
- Evas_Coord adjustment = (c->h - c->hmax) * o->valign;
- Evas_Object_Textblock_Paragraph *par;
- EINA_INLIST_FOREACH(c->paragraphs, par)
- {
- par->y += adjustment;
- }
+ par->y += adjustment;
}
}