From f3073f3693dd11a350d477ca5f70529d57db53fe Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 4 Jun 2012 13:41:35 -0700 Subject: [PATCH] agg/grid renderers - match cairo by using buffered detector dimensions for placement_finder collision tests --- src/agg/process_text_symbolizer.cpp | 2 +- src/grid/process_text_symbolizer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agg/process_text_symbolizer.cpp b/src/agg/process_text_symbolizer.cpp index 5c16652af..9da346a48 100644 --- a/src/agg/process_text_symbolizer.cpp +++ b/src/agg/process_text_symbolizer.cpp @@ -35,7 +35,7 @@ void agg_renderer::process(text_symbolizer const& sym, text_symbolizer_helper, label_collision_detector4> helper( sym, *feature, prj_trans, - width_, height_, + detector_->extent().width(), detector_->extent().height(), scale_factor_, t_, font_manager_, *detector_, query_extent_); diff --git a/src/grid/process_text_symbolizer.cpp b/src/grid/process_text_symbolizer.cpp index 0587a9231..f943746c2 100644 --- a/src/grid/process_text_symbolizer.cpp +++ b/src/grid/process_text_symbolizer.cpp @@ -35,7 +35,7 @@ void grid_renderer::process(text_symbolizer const& sym, text_symbolizer_helper, label_collision_detector4> helper( sym, *feature, prj_trans, - width_, height_, + detector_.extent().width(), detector_.extent().height(), scale_factor_ * (1.0/pixmap_.get_resolution()), t_, font_manager_, detector_, query_extent);