From a6e0855b7ce33505082db68d65ceb92d3396fd26 Mon Sep 17 00:00:00 2001 From: urandom Date: Sat, 28 Feb 2009 17:50:15 +0000 Subject: [PATCH] fix smaller-box-than-items problem for horizontal layout git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@39289 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_box.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/canvas/evas_object_box.c b/src/lib/canvas/evas_object_box.c index 5e84c43..cbba869 100644 --- a/src/lib/canvas/evas_object_box.c +++ b/src/lib/canvas/evas_object_box.c @@ -788,10 +788,10 @@ evas_object_box_layout_horizontal(Evas_Object *o, Evas_Object_Box_Data *priv, vo x += remaining * priv->align.h; else if (n_children == 1) x += remaining / 2; - else + else if (remaining > 0) { /* justified */ _fixed_point_divide_and_decompose_integer - (remaining, n_children - 1, &global_pad, &pad_inc); + (remaining, n_children - 1, &global_pad, &pad_inc); global_pad += priv->pad.h; } -- 2.7.4