Fix PointSymbolizer collision bounding boxes.

This commit is contained in:
Hermann Kraus 2013-03-24 15:57:54 +01:00
parent e6b7525d34
commit f3cf17728b

View file

@ -485,6 +485,7 @@ bool placement_finder::add_marker(glyph_positions_ptr glyphs, const pixel_positi
pixel_position real_pos = (marker_unlocked_ ? pos : glyphs->get_base_point()) + marker_displacement_;
box2d<double> bbox = marker_box_;
bbox.move(real_pos.x, real_pos.y);
bbox *= scale_factor_;
glyphs->set_marker(marker_, real_pos);
if (collision(bbox)) return false;
detector_.insert(bbox);