forked from enlightenment/efl
elm_genlist: do not check scroll if show_item is NULL
Summary: If show_item is NULL then does not need to check scroll. But, sometimes show_item is NULL but check_scroll is true. It was wrong and can makes a crash. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Reviewers: cedric, Hermet, SanghyeonLee, raster Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D4569 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
808fcf4dae
commit
669d95252a
|
@ -833,6 +833,7 @@ _calc_job(void *data)
|
||||||
if (!sd->must_recalc_idler)
|
if (!sd->must_recalc_idler)
|
||||||
sd->must_recalc_idler = ecore_idler_add(_must_recalc_idler, data);
|
sd->must_recalc_idler = ecore_idler_add(_must_recalc_idler, data);
|
||||||
}
|
}
|
||||||
|
if (!sd->show_item) sd->check_scroll = EINA_FALSE;
|
||||||
if (sd->check_scroll)
|
if (sd->check_scroll)
|
||||||
{
|
{
|
||||||
elm_obj_pan_content_size_get(sd->pan_obj, &pan_w, &pan_h);
|
elm_obj_pan_content_size_get(sd->pan_obj, &pan_w, &pan_h);
|
||||||
|
|
Loading…
Reference in New Issue