Add 'if' statement for safety

This commit is contained in:
Jaehwan Kim 2013-04-23 19:23:16 +09:00
parent c81bda1077
commit 5153124045
1 changed files with 6 additions and 3 deletions

View File

@ -3338,9 +3338,12 @@ _elm_widget_show_region_set(Eo *obj, void *_pd, va_list *list)
sd->on_show_region
(sd->on_show_region_data, obj);
eo_do(obj, elm_scrollable_interface_content_pos_get(&nx, &ny));
x -= nx;
y -= ny;
if (_elm_scrollable_is(obj))
{
eo_do(obj, elm_scrollable_interface_content_pos_get(&nx, &ny));
x -= nx;
y -= ny;
}
}
do