Fix typo!

SVN revision: 34686
This commit is contained in:
Gustavo Sverzut Barbieri 2008-05-28 18:00:04 +00:00
parent c56d5ba638
commit 40a63c7965
1 changed files with 5 additions and 4 deletions

View File

@ -654,7 +654,7 @@ evas_object_size_hint_min_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
MAGIC_CHECK_END();
if (obj->delete_me)
return;
if (obj->size_hints)
if (!obj->size_hints)
obj->size_hints = calloc(1, sizeof(*obj->size_hints));
obj->size_hints->min.w = w;
@ -712,7 +712,7 @@ evas_object_size_hint_max_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
MAGIC_CHECK_END();
if (obj->delete_me)
return;
if (obj->size_hints)
if (!obj->size_hints)
obj->size_hints = calloc(1, sizeof(*obj->size_hints));
obj->size_hints->max.w = w;
@ -770,7 +770,8 @@ evas_object_size_hint_request_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
MAGIC_CHECK_END();
if (obj->delete_me)
return;
if (obj->size_hints) obj->size_hints = calloc(1, sizeof(*obj->size_hints));
if (!obj->size_hints)
obj->size_hints = calloc(1, sizeof(*obj->size_hints));
obj->size_hints->request.w = w;
obj->size_hints->request.h = h;
@ -832,7 +833,7 @@ evas_object_size_hint_aspect_set(Evas_Object *obj, Evas_Aspect_Control aspect, E
MAGIC_CHECK_END();
if (obj->delete_me)
return;
if (obj->size_hints)
if (!obj->size_hints)
obj->size_hints = calloc(1, sizeof(*obj->size_hints));
obj->size_hints->aspect.mode = aspect;