Fix for fix. Forgot to check if markers exist before trying to clear. Oops
authorIan Thompson <quornian@googlemail.com>
Sun, 17 Aug 2008 09:46:47 +0000 (09:46 +0000)
committerIan Thompson <quornian@googlemail.com>
Sun, 17 Aug 2008 09:46:47 +0000 (09:46 +0000)
source/blender/blenkernel/intern/text.c

index 7802a1af1da90f06be76964c6efaee2d69770a92..35422353b0de4279b91cc8094f44b5e5103e7010 100644 (file)
@@ -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;
        }