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