From 3f9505e3e67fbdfccbc7331fbb7bbed06a9eb4fa Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Sun, 28 Feb 2016 09:19:52 +0100 Subject: [PATCH] [colocations] apply counts only to the "to" cases (I used this already longer time but it was not yet committed) --- .../algorithms/detail/overlay/handle_colocations.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/geometry/algorithms/detail/overlay/handle_colocations.hpp b/include/boost/geometry/algorithms/detail/overlay/handle_colocations.hpp index 013ac22a1..bac7655d1 100644 --- a/include/boost/geometry/algorithms/detail/overlay/handle_colocations.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/handle_colocations.hpp @@ -553,14 +553,14 @@ inline void assign_startable_in_clusters(Clusters& clusters, Turns& turns, turn_type& turn = turns[ranked.turn_index]; turn_operation_type& op = turn.operations[ranked.op_index]; - op.enriched.count_left = ranked.left_count; - op.enriched.count_right = ranked.right_count; - if (ranked.index != sort_by_side::index_to) { continue; } + op.enriched.count_left = ranked.left_count; + op.enriched.count_right = ranked.right_count; + if ((for_operation == operation_union && ranked.left_count != 0) || (for_operation == operation_intersection