Author: tlsa
Date: Tue Jun 3 17:18:15 2008
New Revision: 4258
URL:
http://source.netsurf-browser.org?rev=4258&view=rev
Log:
Fix list marker check. Thanks to jmb and mikeL.
Modified:
trunk/netsurf/desktop/selection.c
Modified: trunk/netsurf/desktop/selection.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/desktop/selection.c?rev=4...
==============================================================================
--- trunk/netsurf/desktop/selection.c (original)
+++ trunk/netsurf/desktop/selection.c Tue Jun 3 17:18:15 2008
@@ -446,7 +446,7 @@
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;
}