From 408aa68174e10b02fac50baee1d6e518259fecd4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 13 Apr 2004 13:30:22 +0000 Subject: [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 --- desktop/imagemap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop/imagemap.c') 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 */ -- cgit v1.2.3