Author: chris_y
Date: Thu Sep 16 15:55:25 2010
New Revision: 10789
URL:
http://source.netsurf-browser.org?rev=10789&view=rev
Log:
Prevent assert on non-HTML contents
Modified:
trunk/netsurf/amiga/gui.c
Modified: trunk/netsurf/amiga/gui.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/amiga/gui.c?rev=10789&...
==============================================================================
--- trunk/netsurf/amiga/gui.c (original)
+++ trunk/netsurf/amiga/gui.c Thu Sep 16 15:55:25 2010
@@ -3807,6 +3807,10 @@
hlcache_handle *content;
int box_x=0,box_y=0;
+ content = gwin->bw->current_content;
+
+ if(content_get_type(content) != CONTENT_HTML) return NULL;
+
GetAttr(SPACE_AreaBox, (Object *)gwin->objects[GID_BROWSER],
(ULONG *)&bbox);
@@ -3819,7 +3823,6 @@
width=bbox->Width;
height=bbox->Height;
- content = gwin->bw->current_content;
box = html_get_box_tree(content);
while ((box = box_at_point(box, *x, *y, &box_x, &box_y, &content)))
{