elm list: Fixed elm_list_scroller_policy_set(). Closed ticket #842.

SVN revision: 62956
This commit is contained in:
Daniel Juyung Seo 2011-08-29 16:13:35 +00:00
parent 0dad9657af
commit 12f074553c
1 changed files with 3 additions and 3 deletions

View File

@ -2013,11 +2013,11 @@ elm_list_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm
{
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
if ((!wd) || (!wd->scr)) return;
if ((policy_h >= ELM_SCROLLER_POLICY_LAST) ||
(policy_v >= ELM_SCROLLER_POLICY_LAST))
if (wd->scr)
elm_smart_scroller_policy_set(wd->scr, policy_h, policy_v);
return;
elm_smart_scroller_policy_set(wd->scr, policy_h, policy_v);
}
EAPI void