Merge pull request #2786 from mapycz/fix-labeling

fix labeling
This commit is contained in:
Artem Pavlenko 2015-04-30 10:17:24 +02:00
commit a608269946
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ struct placement_finder_adapter
points_on_line_(points_on_line) {} points_on_line_(points_on_line) {}
template <typename PathT> template <typename PathT>
void add_path(PathT & path) void add_path(PathT & path) const
{ {
status_ = finder_.find_line_placements(path, points_on_line_); status_ = finder_.find_line_placements(path, points_on_line_);
} }

View file

@ -335,7 +335,7 @@ bool text_symbolizer_helper::next_line_placement() const
{ {
auto const& line = util::get<geometry::line_string<double> const>(*geo_itr_); auto const& line = util::get<geometry::line_string<double> const>(*geo_itr_);
geometry::line_string_vertex_adapter<double> va(line); geometry::line_string_vertex_adapter<double> va(line);
//converter_.apply(va, adapter_); converter_.apply(va, adapter_);
if (adapter_.status()) if (adapter_.status())
{ {
//Found a placement //Found a placement