return a "default" max of -1 x -1 - 0x0 max isnt that sensible! (-1 ==

unlimited)



SVN revision: 36432
This commit is contained in:
Carsten Haitzler 2008-10-04 16:53:47 +00:00
parent 204993a635
commit 34e595f87a
1 changed files with 2 additions and 2 deletions

View File

@ -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;