forked from enlightenment/efl
elm: Fix division by zero in elm_interface_scroller
SVN revision: 75483
This commit is contained in:
parent
f6b7b459fa
commit
379a494a87
|
@ -2682,8 +2682,13 @@ _elm_scroll_hold_animator(void *data)
|
|||
dst_index++;
|
||||
}
|
||||
}
|
||||
fx = xsum / dst_index;
|
||||
fy = ysum / dst_index;
|
||||
if (dst_index)
|
||||
{
|
||||
fx = xsum / dst_index;
|
||||
fy = ysum / dst_index;
|
||||
}
|
||||
else
|
||||
fx = fy = 0;
|
||||
}
|
||||
|
||||
_elm_scroll_content_pos_get(sid->obj, &ox, &oy);
|
||||
|
|
Loading…
Reference in New Issue