From 98d17d9868505dfc52aa1a666923998db3dbe92e Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 4 Oct 2008 16:53:47 +0000 Subject: [PATCH] return a "default" max of -1 x -1 - 0x0 max isnt that sensible! (-1 == unlimited) git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@36432 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/canvas/evas_object_main.c b/src/lib/canvas/evas_object_main.c index 248917b..77deda9 100644 --- a/src/lib/canvas/evas_object_main.c +++ b/src/lib/canvas/evas_object_main.c @@ -661,12 +661,12 @@ EAPI void evas_object_size_hint_max_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h) { MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ); - if (w) *w = 0; if (h) *h = 0; + if (w) *w = -1; if (h) *h = -1; return; MAGIC_CHECK_END(); if ((!obj->size_hints) || obj->delete_me) { - if (w) *w = 0; if (h) *h = 0; + if (w) *w = -1; if (h) *h = -1; return; } if (w) *w = obj->size_hints->max.w; -- 2.7.4