From ae568d32234bc20825bfd0828c4fb314658b8070 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Sun, 29 Mar 2009 09:46:02 +0000 Subject: [PATCH] make text_symbolizer behave like shield_symbolizer --- src/agg_renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agg_renderer.cpp b/src/agg_renderer.cpp index 5897a30d8..da552db83 100644 --- a/src/agg_renderer.cpp +++ b/src/agg_renderer.cpp @@ -763,7 +763,7 @@ namespace mapnik path_type path(t_,geom,prj_trans); placement text_placement(info,sym); text_placement.avoid_edges = sym.get_avoid_edges(); - if (sym.get_label_placement() == POINT_PLACEMENT || geom.num_points() == 1) + if (sym.get_label_placement() == POINT_PLACEMENT) { double label_x, label_y, z=0.0; geom.label_position(&label_x, &label_y); @@ -772,7 +772,7 @@ namespace mapnik finder.find_point_placement(text_placement,label_x,label_y); finder.update_detector(text_placement); } - else //LINE_PLACEMENT + else if ( geom.num_points() > 1 && sym.get_label_placement() == LINE_PLACEMENT) { finder.find_line_placements(text_placement,path); }