diff --git a/include/mapnik/transform_path_adapter.hpp b/include/mapnik/transform_path_adapter.hpp index 52a68e918..17acb0e6b 100644 --- a/include/mapnik/transform_path_adapter.hpp +++ b/include/mapnik/transform_path_adapter.hpp @@ -86,7 +86,7 @@ struct transform_path_adapter while (!ok) { command = geom_.vertex(x,y); - if (command == SEG_END) + if (command == SEG_END || command == SEG_CLOSE) { return command; }