From b469509bd09fcc4753a75db0752d260c3d371b4e Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Sun, 10 Aug 2014 12:48:22 +0200 Subject: [PATCH] [buffer][fix] Fix accidental removal of == 0 --- .../algorithms/detail/buffer/turn_in_piece_visitor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 b4acb0d11..9e652bec5 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 @@ -173,9 +173,9 @@ public: } Turn& mutable_turn = m_turns[turn.turn_index]; - if (geometry_code) + if (geometry_code == 0) { - // If it is on the border and they are neighbours, it should be + // If it is on the border and they are not neighbours, it should be // on the offsetted ring if (! on_offsetted(turn.robust_point, piece))