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(); } }