diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-04-13 13:30:22 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-04-13 13:30:22 +0000 |
commit | 408aa68174e10b02fac50baee1d6e518259fecd4 (patch) | |
tree | 18e0d45a918ed576db9e4cb8585216206e8a69de /desktop | |
parent | 04cdfb6151e4e50fc041f12958d977dc9d933246 (diff) | |
download | netsurf-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')
-rw-r--r-- | desktop/imagemap.c | 6 |
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 */ |