diff options
Diffstat (limited to 'source/blender/blenkernel/intern/text.c')
-rw-r--r-- | source/blender/blenkernel/intern/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/text.c b/source/blender/blenkernel/intern/text.c index 7802a1af1da..35422353b0d 100644 --- a/source/blender/blenkernel/intern/text.c +++ b/source/blender/blenkernel/intern/text.c @@ -991,7 +991,7 @@ static void txt_delete_sel (Text *text) move= txt_get_span(text->curl, text->sell); } else { mrk= txt_find_marker_region(text, text->curl, text->curc, text->selc, 0); - if (mrk->start > text->curc || mrk->end < text->selc) + if (mrk && (mrk->start > text->curc || mrk->end < text->selc)) txt_clear_marker_region(text, text->curl, text->curc, text->selc, 0); move= 0; } |