position shield symbolizer symbols centered (ie. with text), rather than top-left in cairo output. re #737 - thanks @jburgess for testing and @Ldp for the patch.

This commit is contained in:
Robert Coup 2011-03-15 22:25:37 +00:00
parent c93984f06f
commit 8ace5b7e6b

View file

@ -1255,7 +1255,7 @@ void cairo_renderer_base::process(shield_symbolizer const& sym,
int px=int(floor(lx - (0.5*w)));
int py=int(floor(ly - (0.5*h)));
render_marker(x,y,**marker, tr, sym.get_opacity());
render_marker(px,py,**marker, tr, sym.get_opacity());
context.add_text(text_placement.placements[ii],
face_manager_,