summaryrefslogtreecommitdiff
path: root/desktop/imagemap.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-04-13 13:30:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-04-13 13:30:22 +0000
commit408aa68174e10b02fac50baee1d6e518259fecd4 (patch)
tree18e0d45a918ed576db9e4cb8585216206e8a69de /desktop/imagemap.c
parent04cdfb6151e4e50fc041f12958d977dc9d933246 (diff)
downloadnetsurf-408aa68174e10b02fac50baee1d6e518259fecd4.tar.gz
netsurf-408aa68174e10b02fac50baee1d6e518259fecd4.tar.bz2
[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
Diffstat (limited to 'desktop/imagemap.c')
-rw-r--r--desktop/imagemap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/imagemap.c b/desktop/imagemap.c
index 9e2da8052..dbdb249c6 100644
--- a/desktop/imagemap.c
+++ b/desktop/imagemap.c
@@ -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 */