diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-03-22 21:47:44 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-03-22 21:47:44 +0100 |
commit | f389806dfa249acd4232b6307dd93f4356b9cea7 (patch) | |
tree | 12085ae8d3c1285b752708b63fffeda040864e28 | |
parent | bf89dce60e148cd7eb12c17984417a18496661da (diff) |
Catch cursor_frame == NULL before inserting text
-rw-r--r-- | libstorycode/gtk/gtkslideview.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libstorycode/gtk/gtkslideview.c b/libstorycode/gtk/gtkslideview.c index 913fd56..f8975d4 100644 --- a/libstorycode/gtk/gtkslideview.c +++ b/libstorycode/gtk/gtkslideview.c @@ -963,6 +963,7 @@ static void insert_text(char *t, GtkSlideView *e) { size_t off; + if ( e->cursor_frame == NULL ) return; if ( !is_text(e->cursor_frame->type) ) return; if ( !slide_positions_equal(e->sel_start, e->sel_end) ) { |