diff --git a/Intersections_2/include/CGAL/Triangle_2_Iso_rectangle_2_intersection.h b/Intersections_2/include/CGAL/Triangle_2_Iso_rectangle_2_intersection.h index 2bd8191b5b4..439705a116f 100644 --- a/Intersections_2/include/CGAL/Triangle_2_Iso_rectangle_2_intersection.h +++ b/Intersections_2/include/CGAL/Triangle_2_Iso_rectangle_2_intersection.h @@ -271,7 +271,7 @@ namespace CGAL{ namespace internal { typename std::vector::iterator last = std::unique(result.begin(),result.end()); result.erase(last,result.end()); - while(result.back() == result.front() && result.size() > 1) + while(result.size() > 1 && result.back() == result.front()) result.pop_back(); switch(result.size()){