changeset 1723:b0cb317b40e0

needn't add extra closing point to image map polygons noticed by Johannes.
author corvid <corvid@lavabit.com>
date Fri, 15 Oct 2010 20:58:04 +0000
parents b0f4bd357814
children ebbf47417126
files src/html.cc
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/html.cc	Fri Oct 15 22:26:14 2010 +0200
+++ b/src/html.cc	Fri Oct 15 20:58:04 2010 +0000
@@ -2345,10 +2345,6 @@
             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);
       }