From 5f5324633708f58e47ee4d4e87f54fb89d163139 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 16 Jun 2011 16:48:30 +0000 Subject: [PATCH] fix bug in width/height of transform in grid_renderer --- src/grid/grid_renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grid/grid_renderer.cpp b/src/grid/grid_renderer.cpp index 73eccd109..861da92d3 100644 --- a/src/grid/grid_renderer.cpp +++ b/src/grid/grid_renderer.cpp @@ -62,10 +62,10 @@ grid_renderer::grid_renderer(Map const& m, T & pixmap, double scale_factor, u width_(pixmap_.width()), height_(pixmap_.height()), scale_factor_(scale_factor), - t_(pixmap_.width(),pixmap_.width(),m.get_current_extent(),offset_x,offset_y), + t_(m.width(),m.height(),m.get_current_extent(),offset_x,offset_y), font_engine_(), font_manager_(font_engine_), - detector_(box2d(-m.buffer_size(), -m.buffer_size(), pixmap_.width() + m.buffer_size(), pixmap_.height() + m.buffer_size())), + detector_(box2d(-m.buffer_size(), -m.buffer_size(), m.width() + m.buffer_size() ,m.height() + m.buffer_size())), ras_ptr(new grid_rasterizer) { #ifdef MAPNIK_DEBUG