[project @ 2004-04-13 13:30:22 by jmb]

Fix my incorrect reading of the spec - shape defaults to rectangle

svn path=/import/netsurf/; revision=769
This commit is contained in:
John Mark Bell 2004-04-13 13:30:22 +00:00
parent 04cdfb6151
commit 408aa68174

View File

@ -257,10 +257,10 @@ struct mapentry *imagemap_addtolist(xmlNode *n, struct mapentry *entry) {
if (!(href = (char*)xmlGetProp(n, (const xmlChar*)"href"))) {
return entry;
}
/* no shape -> ignore */
/* no shape -> shape is a rectangle */
if (!(shape = (char*)xmlGetProp(n, (const xmlChar*)"shape"))) {
xmlFree(href);
return entry;
xmlFree(shape);
shape = (char*)xmlMemStrdup("rect");
}
if (strcasecmp(shape, "default") != 0) {
/* no coords -> ignore */