Fix for fix. Forgot to check if markers exist before trying to clear. Oops

This commit is contained in:
Ian Thompson 2008-08-17 09:46:47 +00:00
parent 9b6dffad2d
commit 5c2015fa89

@ -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;
}