diff options
Diffstat (limited to 'render')
-rw-r--r-- | render/html.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 */ |