From: Mike Blumenkrantz Date: Wed, 29 May 2019 13:17:07 +0000 (-0400) Subject: elm/diskselector: fix handling in theme data setup X-Git-Tag: accepted/tizen/unified/20190604.014647~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e2428cb68bffe6deea5b265866c6fe8207ddbb6;p=platform%2Fupstream%2Fefl.git elm/diskselector: fix handling in theme data setup Summary: the previous code checked for the object which was required to execute the remainder of the function, then returned if that object existed instead of continuing with the function. hello? @fix Depends on D8956 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8957 --- diff --git a/src/lib/elementary/elm_diskselector.c b/src/lib/elementary/elm_diskselector.c index cd76454..bcbcffb 100644 --- a/src/lib/elementary/elm_diskselector.c +++ b/src/lib/elementary/elm_diskselector.c @@ -784,7 +784,7 @@ _theme_data_get(Evas_Object *obj) ELM_DISKSELECTOR_DATA_GET(obj, sd); blank = eina_list_data_get(sd->right_blanks); - if (blank) return; + if (!blank) return; str = edje_object_data_get(blank, "len_threshold"); if (str) sd->len_threshold = MAX(0, atoi(str));