Avoid adding the same text to detector twice.

This commit is contained in:
Hermann Kraus 2012-03-02 12:38:38 +01:00
parent c25e8c7d94
commit cc547385e6

View file

@ -62,7 +62,10 @@ text_placement_info_ptr text_symbolizer_helper<FaceManagerT, DetectorT>::get_lin
if (!placement_->placements.empty())
{
//Found a placement
finder.update_detector();
if (points_on_line_)
{
finder.update_detector();
}
geo_itr_ = geometries_to_process_.erase(geo_itr_);
if (writer_.first) writer_.first->add_text(
*placement_, font_manager_,