From 4f783f61ed67ae0ac175871bf1521a73231567d5 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 12 Apr 2021 14:16:09 +0100 Subject: [PATCH] Init by value --- utils/svg2png/svg2png.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/svg2png/svg2png.cpp b/utils/svg2png/svg2png.cpp index 18b15e8e4..8484cf74d 100644 --- a/utils/svg2png/svg2png.cpp +++ b/utils/svg2png/svg2png.cpp @@ -102,7 +102,7 @@ struct main_marker_visitor pixfmt pixf(buf); renderer_base renb(pixf); - mapnik::box2d const& bbox = {0, 0, svg_width, svg_height}; + mapnik::box2d bbox = {0, 0, svg_width, svg_height}; // center the svg marker on '0,0' agg::trans_affine mtx = agg::trans_affine_translation(-0.5 * w, -0.5 * h); // Scale the image