zmike pushed a commit to branch efl-1.22. http://git.enlightenment.org/core/efl.git/commit/?id=c0e9a62efe53cee62ba64a5543cc2e4732955c49
commit c0e9a62efe53cee62ba64a5543cc2e4732955c49 Author: Mike Blumenkrantz <[email protected]> Date: Wed May 29 09:29:51 2019 -0400 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 --- src/lib/elementary/elm_code_widget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index 0720a5253b..e8ea5d2495 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c @@ -713,7 +713,8 @@ _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)); - elm_layout_signal_emit(pd->cursor_rect, "elm,action,show,cursor", "elm"); + if (pd->editable && pd->cursor_rect) + elm_layout_signal_emit(pd->cursor_rect, "elm,action,show,cursor", "elm"); } --
