From 6abe245eb7fed6f2ff424504e42ef0dfcd09cc33 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Sat, 3 May 2014 02:47:58 +0200 Subject: [PATCH] [get_turns] Fix invalid condition get_turn_info_la --- .../geometry/algorithms/detail/overlay/get_turn_info_la.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/geometry/algorithms/detail/overlay/get_turn_info_la.hpp b/include/boost/geometry/algorithms/detail/overlay/get_turn_info_la.hpp index c1c5bed66..3eab8e60e 100644 --- a/include/boost/geometry/algorithms/detail/overlay/get_turn_info_la.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/get_turn_info_la.hpp @@ -395,7 +395,7 @@ struct get_turn_info_linear_areal IntersectionInfo const& inters, bool is_p_last) { - bool is_p_spike = op == operation_union || op == operation_intersection + bool is_p_spike = ( op == operation_union || op == operation_intersection ) && ! is_p_last && inters.is_spike_p();