From c1bc8ffc649fbccf7e34a7f68ee3bdb01d077d4c Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 13 Apr 2015 11:17:17 +0200 Subject: [PATCH] simlified_converter - use start (move_to) x,y on close_path command (drops tiny islands) --- include/mapnik/simplify_converter.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/mapnik/simplify_converter.hpp b/include/mapnik/simplify_converter.hpp index b31a0bff5..e9a88c4cf 100644 --- a/include/mapnik/simplify_converter.hpp +++ b/include/mapnik/simplify_converter.hpp @@ -244,7 +244,8 @@ private: // We eliminated the previous point because it was too close, but // we have to output it now anyway, since this is the end of the // vertex stream. Make sure that we output SEG_CLOSE in the next call. - vtx = last; + vtx.x = start_vertex_.x; + vtx.y = start_vertex_.y; status_ = closing; } break;