From 7a89f1ab0269ac866fb8fb6992dd74aea0be2da2 Mon Sep 17 00:00:00 2001 From: Jiri Drbalek Date: Mon, 3 Nov 2014 15:35:16 +0000 Subject: [PATCH] fix default value condition --- include/mapnik/simplify_converter.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mapnik/simplify_converter.hpp b/include/mapnik/simplify_converter.hpp index 6e4ddda3e..979e59f0e 100644 --- a/include/mapnik/simplify_converter.hpp +++ b/include/mapnik/simplify_converter.hpp @@ -204,7 +204,7 @@ private: return SEG_CLOSE; } - vertex2d last(vertex2d::no_init); + vertex2d last; vertex2d vtx(vertex2d::no_init); while ((vtx.cmd = geom_.vertex(&vtx.x, &vtx.y)) != SEG_END) { @@ -217,7 +217,7 @@ private: // continue } } else if (vtx.cmd == SEG_CLOSE) { - if (last.cmd == vertex2d::no_init) { + if (last.cmd == SEG_END) { // The previous vertex was already output in the previous call. // We can now safely output SEG_CLOSE. status_ = end;