This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/agg/agg_renderer.cpp b/src/agg/agg_renderer.cpp | |
index f3e6cea..0afa940 100644 | |
--- a/src/agg/agg_renderer.cpp | |
+++ b/src/agg/agg_renderer.cpp | |
@@ -337,7 +337,9 @@ void agg_renderer<T>::render_marker(pixel_position const& pos, | |
renderer_type, | |
pixfmt_comp_type> svg_renderer(svg_path, | |
(*marker.get_vector_data())->attributes()); | |
- | |
+ // https://github.com/mapnik/mapnik/issues/1316 | |
+ mtx.tx = std::floor(mtx.tx+.5); | |
+ mtx.ty = std::floor(mtx.ty+.5); | |
svg_renderer.render(*ras_ptr, sl, renb, mtx, opacity, bbox); | |
} | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment