From 919bf27dc3313ce0b66fbb47844a88f6e9061bec Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 29 Apr 2015 15:40:22 -0700 Subject: [PATCH] close polygon paths --- include/mapnik/geometry_to_path.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mapnik/geometry_to_path.hpp b/include/mapnik/geometry_to_path.hpp index a05829505..f74fabc5f 100644 --- a/include/mapnik/geometry_to_path.hpp +++ b/include/mapnik/geometry_to_path.hpp @@ -80,6 +80,7 @@ struct geometry_to_path if (first) { p_.move_to(pt.x, pt.y); first=false;} else p_.line_to(pt.x, pt.y); } + p_.close_path(); // interior for (auto const& ring : poly.interior_rings) { @@ -91,6 +92,7 @@ struct geometry_to_path if (first) { p_.move_to(pt.x, pt.y); first=false;} else p_.line_to(pt.x, pt.y); } + p_.close_path(); } }