From 26100514b98e4fae98e934c0cfd1b4ad385e4450 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Fri, 3 Feb 2012 23:33:28 +0000 Subject: [PATCH] Fixed disjoint case directed to "error" (which as later on directed to disjoint again, why it was never noticed, but that is changed now) [SVN r76863] --- .../boost/geometry/strategies/cartesian/cart_intersect.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/geometry/strategies/cartesian/cart_intersect.hpp b/include/boost/geometry/strategies/cartesian/cart_intersect.hpp index 302055bbd..ea690cb1a 100644 --- a/include/boost/geometry/strategies/cartesian/cart_intersect.hpp +++ b/include/boost/geometry/strategies/cartesian/cart_intersect.hpp @@ -121,7 +121,7 @@ struct relate_cartesian_segments coordinate_type const& dx_a, coordinate_type const& dy_a, coordinate_type const& dx_b, coordinate_type const& dy_b) { - // 1) Handle "disjoint", probably common case. + // 1) Handle "disjoint", common case. // per dimension, 2 cases: a_1----------a_2 b_1-------b_2 or B left of A coordinate_type ax_1, ax_2, bx_1, bx_2; bool ax_swapped = false, bx_swapped = false; @@ -137,7 +137,7 @@ struct relate_cartesian_segments bool ay_swapped = false, by_swapped = false; detail::segment_arrange::apply(a, ay_1, ay_2, ay_swapped); detail::segment_arrange::apply(b, by_1, by_2, by_swapped); - if (ay_2 < ay_1 || ay_1 > by_2) + if (ay_2 < by_1 || ay_1 > by_2) { return Policy::disjoint(); }