Add 'if' statement for safety
This commit is contained in:
parent
c81bda1077
commit
5153124045
|
@ -3338,10 +3338,13 @@ _elm_widget_show_region_set(Eo *obj, void *_pd, va_list *list)
|
||||||
sd->on_show_region
|
sd->on_show_region
|
||||||
(sd->on_show_region_data, obj);
|
(sd->on_show_region_data, obj);
|
||||||
|
|
||||||
|
if (_elm_scrollable_is(obj))
|
||||||
|
{
|
||||||
eo_do(obj, elm_scrollable_interface_content_pos_get(&nx, &ny));
|
eo_do(obj, elm_scrollable_interface_content_pos_get(&nx, &ny));
|
||||||
x -= nx;
|
x -= nx;
|
||||||
y -= ny;
|
y -= ny;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue