move safety check to actually do stuff here

SVN revision: 65872
This commit is contained in:
Mike Blumenkrantz 2011-12-04 22:02:02 +00:00
parent 60b7773ac6
commit 88a2ddbe71
1 changed files with 2 additions and 2 deletions

View File

@ -639,8 +639,6 @@ _elm_win_obj_callback_resize(void *data, Evas *e __UNUSED__, Evas_Object *obj, v
Evas_Coord w = 1, h = 1;
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
if (w < 1) w = 1;
if (h < 1) h = 1;
if (win->constrain)
{
int sw, sh;
@ -648,6 +646,8 @@ _elm_win_obj_callback_resize(void *data, Evas *e __UNUSED__, Evas_Object *obj, v
w = MIN(w, sw);
h = MIN(h, sh);
}
if (w < 1) w = 1;
if (h < 1) h = 1;
evas_object_image_size_set(win->img_obj, w, h);
}
}