From 05318b210daaa6d68b74f154fef1dae81503eaa8 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 26 Feb 2003 18:22:24 +0000 Subject: [project @ 2003-02-26 18:22:24 by bursa] Fix HTML parsing and JPEG bug. svn path=/import/netsurf/; revision=101 --- desktop/browser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index fc93de7ce..cb64d22f2 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1,5 +1,5 @@ /** - * $Id: browser.c,v 1.26 2003/02/25 21:00:27 bursa Exp $ + * $Id: browser.c,v 1.27 2003/02/26 18:22:24 bursa Exp $ */ #include "netsurf/content/cache.h" @@ -503,7 +503,9 @@ void browser_window_follow_link(struct browser_window* bw, click_boxes = NULL; plot_index = 0; - assert(bw->current_content->type == CONTENT_HTML); + if (bw->current_content->type != CONTENT_HTML) + return; + box_under_area(bw->current_content->data.html.layout->children, click_x, click_y, 0, 0, &click_boxes, &found, &plot_index); -- cgit v1.2.3