From dfed92dee228ad426baeb89dd8896ce4db80278a Mon Sep 17 00:00:00 2001 From: corvid Date: Fri, 15 Oct 2010 20:58:04 +0000 Subject: needn't add extra closing point to image map polygons noticed by Johannes. --- src/html.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/html.cc b/src/html.cc index fe049e39..278868a5 100644 --- a/src/html.cc +++ b/src/html.cc @@ -2345,10 +2345,6 @@ static void Html_tag_open_area(DilloHtml *html, const char *tag, int tagsize) shape = poly = new Polygon(); for (i = 0; i < (coords->size() / 2); i++) poly->addPoint(coords->get(2*i), coords->get(2*i + 1)); - if (i) { - /* be sure to close it */ - poly->addPoint(coords->get(0), coords->get(1)); - } } delete(coords); } -- cgit v1.2.3