From fad8eff676821642f43c50ac3f7b66c6c4066fb9 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 12 Jul 2012 19:01:59 -0700 Subject: [PATCH] fix scaling of markers when render time resolution != 1 --- src/grid/process_markers_symbolizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grid/process_markers_symbolizer.cpp b/src/grid/process_markers_symbolizer.cpp index 2094936e6..adade0895 100644 --- a/src/grid/process_markers_symbolizer.cpp +++ b/src/grid/process_markers_symbolizer.cpp @@ -92,14 +92,14 @@ void grid_renderer::process(markers_symbolizer const& sym, agg::trans_affine tr; setup_label_transform(tr, bbox, feature, sym); - tr = agg::trans_affine_scaling(scale_factor_*(1.0/pixmap_.get_resolution())) * tr; - // - clamp sizes to > 4 pixels of interativity + // - clamp sizes to > 4 pixels of interactivity if (tr.scale() < 0.5) { agg::trans_affine tr2; tr2 *= agg::trans_affine_scaling(0.5); tr = tr2; } + tr *= agg::trans_affine_scaling(scale_factor_*(1.0/pixmap_.get_resolution())); coord2d center = bbox.center(); agg::trans_affine_translation recenter(-center.x, -center.y);