[project @ 2004-12-08 00:33:25 by jmb]

Update to work with new imagemap interface

svn path=/import/netsurf/; revision=1391
This commit is contained in:
John Mark Bell 2004-12-08 00:33:25 +00:00
parent d86553ef7e
commit 76efc5a0d0
1 changed files with 7 additions and 1 deletions

View File

@ -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 */