From bdcdb5717ebc12cfc3dd0d8c35a831775f8d84d2 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Sat, 9 Aug 2014 23:18:48 +0200 Subject: [PATCH] [buffer] don't check neighbor for on-border --- .../algorithms/detail/buffer/turn_in_piece_visitor.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/geometry/algorithms/detail/buffer/turn_in_piece_visitor.hpp b/include/boost/geometry/algorithms/detail/buffer/turn_in_piece_visitor.hpp index 182f5af6a..b4acb0d11 100644 --- a/include/boost/geometry/algorithms/detail/buffer/turn_in_piece_visitor.hpp +++ b/include/boost/geometry/algorithms/detail/buffer/turn_in_piece_visitor.hpp @@ -167,9 +167,13 @@ public: { return; } + if (geometry_code == 0 && neighbour) + { + return; + } Turn& mutable_turn = m_turns[turn.turn_index]; - if (geometry_code == 0 && ! neighbour) + if (geometry_code) { // If it is on the border and they are neighbours, it should be // on the offsetted ring