forked from enlightenment/efl
elm_widget.c: Fixed warning while scrolling elementary_test using arrow
Summary: Checked whether object which direction pointed is NULL before getting it's data Reviewers: seoz, raster Reviewed By: raster Differential Revision: https://phab.enlightenment.org/D95
This commit is contained in:
parent
8b507ff3d2
commit
11b568a35b
|
@ -2512,7 +2512,8 @@ _elm_widget_focus_direction_get(Eo *obj, void *_pd, va_list *list)
|
||||||
((c_weight != 0.0) && (*weight != -1.0) &&
|
((c_weight != 0.0) && (*weight != -1.0) &&
|
||||||
((int)(*weight * 1000000) <= (int)(c_weight * 1000000))))
|
((int)(*weight * 1000000) <= (int)(c_weight * 1000000))))
|
||||||
{
|
{
|
||||||
if ((int)(*weight * 1000000) == (int)(c_weight * 1000000))
|
if (*direction &&
|
||||||
|
((int)(*weight * 1000000) == (int)(c_weight * 1000000)))
|
||||||
{
|
{
|
||||||
ELM_WIDGET_DATA_GET(*direction, sd1);
|
ELM_WIDGET_DATA_GET(*direction, sd1);
|
||||||
if (sd1)
|
if (sd1)
|
||||||
|
|
Loading…
Reference in New Issue