diff --git a/Intersections_3/include/CGAL/Intersections_3/internal/intersection_3_1_impl.h b/Intersections_3/include/CGAL/Intersections_3/internal/intersection_3_1_impl.h index 8bc4f072dbc..4e4f15aa2bd 100644 --- a/Intersections_3/include/CGAL/Intersections_3/internal/intersection_3_1_impl.h +++ b/Intersections_3/include/CGAL/Intersections_3/internal/intersection_3_1_impl.h @@ -384,7 +384,7 @@ struct L_p_visitor : public boost::static_visitor< result_type operator()(const typename K::Point_3& p) const { typename K::Collinear_are_ordered_along_line_3 cln_order=K().collinear_are_ordered_along_line_3_object(); - if ( cln_order(s1[0],p,s1[1]) && cln_order(s2[0],p,s2[1]) ) + if (CGAL::Is_valid()(p.x()) && cln_order(s1[0],p,s1[1]) && cln_order(s2[0],p,s2[1]) ) return intersection_return(p); else return intersection_return();