From a66415564fce0921724c34f8a4a3a488d0453bbb Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 29 Jul 2008 09:48:08 +0000 Subject: [PATCH] Add rectangle as alias for "rect" svn path=/trunk/netsurf/; revision=4798 --- render/imagemap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render/imagemap.c b/render/imagemap.c index eddd812e6..2a74307ed 100644 --- a/render/imagemap.c +++ b/render/imagemap.c @@ -383,7 +383,8 @@ bool imagemap_addtolist(xmlNode *n, char *base_url, struct mapentry **entry) } /* extract area shape */ - if (strcasecmp(shape, "rect") == 0) { + if (strcasecmp(shape, "rect") == 0 || + strcasecmp(shape, "rectangle") == 0) { new_map->type = IMAGEMAP_RECT; } else if (strcasecmp(shape, "circle") == 0) {