Fix 0 division

SVN revision: 80011
This commit is contained in:
Jaehwan Kim 2012-12-03 07:01:22 +00:00
parent db9aec704d
commit af28727f14
1 changed files with 6 additions and 4 deletions

View File

@ -487,14 +487,16 @@ _resize_job(void *data)
if (sd->vertical)
{
if (h > vh) _items_size_fit(obj, &h, vh);
eo_do(obj,
elm_scrollable_interface_paging_set(0.0, 0.0, 0, (h / (sd->item_count - sd->separator_count))));
if (sd->item_count - sd->separator_count > 0)
eo_do(obj, elm_scrollable_interface_paging_set
(0.0, 0.0, 0, (h / (sd->item_count - sd->separator_count))));
}
else
{
if (w > vw) _items_size_fit(obj, &w, vw);
eo_do(obj,
elm_scrollable_interface_paging_set(0.0, 0.0, (w / (sd->item_count - sd->separator_count)), 0));
if (sd->item_count - sd->separator_count > 0)
eo_do(obj, elm_scrollable_interface_paging_set
(0.0, 0.0, (w / (sd->item_count - sd->separator_count)), 0));
}
}
else