mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-09 23:24:02 +00:00
[fix] rename indices for issue 1169
This commit is contained in:
parent
0237a9d966
commit
bce027fd92
@ -86,14 +86,14 @@ inline void colocate_clusters(Clusters const& clusters, Turns& turns)
|
||||
{
|
||||
for (auto const& pair : clusters)
|
||||
{
|
||||
auto const& indices = pair.second.turn_indices;
|
||||
if (indices.size() < 2)
|
||||
auto const& turn_indices = pair.second.turn_indices;
|
||||
if (turn_indices.size() < 2)
|
||||
{
|
||||
// Defensive check
|
||||
continue;
|
||||
}
|
||||
using point_t = decltype(turns[*indices.begin()].point);
|
||||
cluster_colocator<point_t>::apply(indices, turns);
|
||||
using point_t = decltype(turns[*turn_indices.begin()].point);
|
||||
cluster_colocator<point_t>::apply(turn_indices, turns);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user