From 009a1e45a75836385dd6318ac5cc9cc0d2b26c35 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 15 Feb 2012 23:27:33 +0000 Subject: [PATCH] + fix shield/text positioning - we still need to floor both text and shield position for consistent rendering. --- src/agg/process_shield_symbolizer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/agg/process_shield_symbolizer.cpp b/src/agg/process_shield_symbolizer.cpp index 6dad62d7b..266d83880 100644 --- a/src/agg/process_shield_symbolizer.cpp +++ b/src/agg/process_shield_symbolizer.cpp @@ -27,9 +27,9 @@ #include #include #include - #include - +// stl +#include // boost #include @@ -57,8 +57,8 @@ void agg_renderer::process(shield_symbolizer const& sym, std::pair marker_pos = helper.get_marker_position(placement->placements[ii]); render_marker(marker_pos.first, marker_pos.second, helper.get_marker(), helper.get_transform(), sym.get_opacity()); - double x = placement->placements[ii].starting_x; - double y = placement->placements[ii].starting_y; + double x = std::floor(placement->placements[ii].starting_x); + double y = std::floor(placement->placements[ii].starting_y); ren.prepare_glyphs(&(placement->placements[ii])); ren.render(x, y); }