From 4084d5830938a726998bd3f4f3ac4f0363c5c60f Mon Sep 17 00:00:00 2001 From: Cezary Tarnowski Date: Mon, 9 Jan 2012 13:41:38 +0100 Subject: [PATCH] bugfix - a proper bugfix for rewinding geometry in building symbolizer --- src/cairo_renderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cairo_renderer.cpp b/src/cairo_renderer.cpp index f0baeef3d..1609aed72 100644 --- a/src/cairo_renderer.cpp +++ b/src/cairo_renderer.cpp @@ -798,6 +798,8 @@ void cairo_renderer_base::process(building_symbolizer const& sym, std::deque face_segments; double x0(0); double y0(0); + + geom.rewind(0); unsigned cm = geom.vertex(&x0, &y0); for (unsigned j = 1; j < geom.num_points(); ++j) @@ -848,7 +850,6 @@ void cairo_renderer_base::process(building_symbolizer const& sym, } geom.rewind(0); - for (unsigned j = 0; j < geom.num_points(); ++j) { double x, y;