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(); }