From 8735311f83fc2052458b5b69b18438939556bce3 Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 30 Mar 2015 12:40:28 +0200 Subject: [PATCH] radial distance - set x=y=0 on SEG_CLOSE command --- include/mapnik/simplify_converter.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mapnik/simplify_converter.hpp b/include/mapnik/simplify_converter.hpp index 03e217f1a..b31a0bff5 100644 --- a/include/mapnik/simplify_converter.hpp +++ b/include/mapnik/simplify_converter.hpp @@ -209,6 +209,7 @@ private: { if (status_ == closing) { + *x = *y = 0.0; status_ = end; return SEG_CLOSE; } @@ -223,7 +224,8 @@ private: { // Only output a vertex if it's far enough away from the previous break; - } else + } + else { last = vtx; // continue