Fix list marker check. Thanks to jmb and mikeL.

svn path=/trunk/netsurf/; revision=4258
This commit is contained in:
Michael Drake 2008-06-03 22:18:15 +00:00
parent 5015eb6e87
commit 38be80a680

View File

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