forked from enlightenment/efl
elm/code: check for cursor layout existence before emitting signals to it
Summary: non-editable widgets do not have this object and will trigger errors @fix Depends on D8988 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8989
This commit is contained in:
parent
ad201122dd
commit
c0e9a62efe
|
@ -713,6 +713,7 @@ _elm_code_widget_cursor_move(Elm_Code_Widget *widget, Elm_Code_Widget_Data *pd,
|
|||
_elm_code_widget_refresh(widget, line_obj);
|
||||
else
|
||||
_elm_code_widget_fill_line(widget, pd, elm_code_file_line_get(pd->code->file, pd->cursor_line));
|
||||
if (pd->editable && pd->cursor_rect)
|
||||
elm_layout_signal_emit(pd->cursor_rect, "elm,action,show,cursor", "elm");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue