From 38be80a680ea5e7403dd39353902a7941e7b0147 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 3 Jun 2008 22:18:15 +0000 Subject: Fix list marker check. Thanks to jmb and mikeL. svn path=/trunk/netsurf/; revision=4258 --- desktop/selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/selection.c b/desktop/selection.c index 31c5def60..f193e2376 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -446,7 +446,7 @@ bool traverse_tree(struct box *box, unsigned start_idx, unsigned end_idx, assert(box); /* If selection starts inside marker */ - if (box->parent->list_marker == box && !do_marker) { + if (box->parent && box->parent->list_marker == box && !do_marker) { /* set box to main list element */ box = box->parent; } -- cgit v1.2.3