elm code: check return value of elm_layout_theme_set

fixes CID 1366922
This commit is contained in:
Amitesh Singh 2017-02-08 09:53:21 +05:30
parent 434d354a51
commit 03cf41c02d
1 changed files with 2 additions and 1 deletions

View File

@ -280,7 +280,8 @@ _elm_code_widget_fill_cursor(Elm_Code_Widget *widget, unsigned int number, int g
{
pd->cursor_rect = elm_layout_add(widget);
elm_layout_theme_set(pd->cursor_rect, "entry", "cursor", elm_widget_style_get(widget));
if (!elm_layout_theme_set(pd->cursor_rect, "entry", "cursor", elm_widget_style_get(widget)))
CRI("Failed to set layout!");
elm_layout_signal_emit(pd->cursor_rect, "elm,action,focus", "elm");
evas_object_resize(pd->cursor_rect, cw/8, ch);