From 76efc5a0d0a36995f29f9bd3f4f5e46f4f376629 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 8 Dec 2004 00:33:25 +0000 Subject: [project @ 2004-12-08 00:33:25 by jmb] Update to work with new imagemap interface svn path=/import/netsurf/; revision=1391 --- render/html.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/render/html.c b/render/html.c index 62f75aadf..1b4cf093f 100644 --- a/render/html.c +++ b/render/html.c @@ -239,7 +239,13 @@ bool html_convert(struct content *c, int width, int height) /*box_dump(c->data.html.layout->children, 0);*/ /* extract image maps - can't do this sensibly in xml_to_box */ - imagemap_extract(html, c); + if (!imagemap_extract(html, c)) { + LOG(("imagemap extraction failed")); + msg_data.error = messages_get("NoMemory"); + content_broadcast(c, CONTENT_MSG_ERROR, msg_data); + warn_user("NoMemory", 0); + return false; + } /*imagemap_dump(c);*/ /* XML tree not required past this point */ -- cgit v1.2.3