diff options
author | corvid <corvid@lavabit.com> | 2010-10-15 20:58:04 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-10-15 20:58:04 +0000 |
commit | dfed92dee228ad426baeb89dd8896ce4db80278a (patch) | |
tree | 41fe194571f298db163129de8ef27135550960dc /src | |
parent | 4212c27815f8cf5c8bc51fb5b8643fc420c47473 (diff) |
needn't add extra closing point to image map polygons
noticed by Johannes.
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 4 |
1 files changed, 0 insertions, 4 deletions
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); } |