From: tasn Date: Wed, 30 Mar 2011 12:58:09 +0000 (+0000) Subject: Evas textblock: Removed duplicated condition. X-Git-Tag: submit/trunk/20120815.174732~1773 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16da8865596f9f38a77018e4c60893a34e4fcb15;p=profile%2Fivi%2Fevas.git Evas textblock: Removed duplicated condition. raster: don't drink and code :). git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@58212 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 0843f4b..73c4421 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -3706,14 +3706,11 @@ _layout(const Evas_Object *obj, int calc_only, int w, int h, int *w_ret, int *h_ /* 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; } }