From 0195047d7a7019ebb0c5fcb1b2b87220133564fe Mon Sep 17 00:00:00 2001 From: Raul Marin Date: Fri, 11 May 2018 11:58:41 +0200 Subject: [PATCH] Marker symbolizer: Fix bug with lines with 0 length (division by zero) --- include/mapnik/geom_util.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/mapnik/geom_util.hpp b/include/mapnik/geom_util.hpp index 49aa06a6a..bdae5b156 100755 --- a/include/mapnik/geom_util.hpp +++ b/include/mapnik/geom_util.hpp @@ -314,6 +314,12 @@ bool middle_point(PathType & path, double & x, double & y, boost::optional::epsilon()) + { + x = x0; + y = y0; + return true; + } double dist = 0.0; while (SEG_END != (command = path.vertex(&x1, &y1))) {