layout: check the return value of elm_widget_theme_object_set() and

return if it fails.

Do not proceed next steps if elm_widget_theme_object_set() returns
false. Proceeding next steps has no meaning at all.
This commit is contained in:
Daniel Juyung Seo 2013-12-08 04:53:49 +09:00
parent 3c618ca79c
commit b4cf7588b1
1 changed files with 3 additions and 3 deletions

View File

@ -350,9 +350,9 @@ _elm_layout_smart_theme(Eo *obj, void *_pd, va_list *list)
}
/* function already prints error messages, if any */
int_ret = elm_widget_theme_object_set
(obj, wd->resize_obj, sd->klass, sd->group,
elm_widget_style_get(obj));
if (!elm_widget_theme_object_set(obj, wd->resize_obj, sd->klass, sd->group,
elm_widget_style_get(obj)))
return;
edje_object_mirrored_set
(wd->resize_obj, elm_widget_mirrored_get(obj));