and also for the vertical layout
authorurandom <urandom@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 28 Feb 2009 17:56:06 +0000 (17:56 +0000)
committerurandom <urandom@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 28 Feb 2009 17:56:06 +0000 (17:56 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@39291 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_box.c

index cbba869..939eb8e 100644 (file)
@@ -951,7 +951,7 @@ evas_object_box_layout_vertical(Evas_Object *o, Evas_Object_Box_Data *priv, void
      y += remaining * priv->align.v;
    else if (n_children == 1)
      y += remaining / 2;
-   else
+   else if (remaining > 0)
      { /* justified */
        _fixed_point_divide_and_decompose_integer
          (remaining, n_children - 1, &global_pad, &pad_inc);