diff --git a/Sweep_line_2/include/CGAL/Sweep_line_2/Basic_sweep_line_2_impl.h b/Sweep_line_2/include/CGAL/Sweep_line_2/Basic_sweep_line_2_impl.h index 0cc93082487..9a56082cb72 100644 --- a/Sweep_line_2/include/CGAL/Sweep_line_2/Basic_sweep_line_2_impl.h +++ b/Sweep_line_2/include/CGAL/Sweep_line_2/Basic_sweep_line_2_impl.h @@ -589,6 +589,7 @@ _remove_curve_from_status_line(Subcurve* sc) // The position of the next event can be right after the deleted subcurve. m_status_line_insert_hint = sl_iter; ++m_status_line_insert_hint; + sc->set_hint(m_statusLine.end()); // Erase the subcurve from the status line. CGAL_SL_PRINT_ERASE(*sl_iter); diff --git a/Sweep_line_2/include/CGAL/Sweep_line_2/Sweep_line_2_impl.h b/Sweep_line_2/include/CGAL/Sweep_line_2/Sweep_line_2_impl.h index a659e4adf39..1e9dac1e9e1 100644 --- a/Sweep_line_2/include/CGAL/Sweep_line_2/Sweep_line_2_impl.h +++ b/Sweep_line_2/include/CGAL/Sweep_line_2/Sweep_line_2_impl.h @@ -373,6 +373,7 @@ _remove_curve_from_status_line(Subcurve* leftCurve, bool remove_for_good) Status_line_iterator sliter = leftCurve->hint(); this->m_status_line_insert_hint = sliter; ++(this->m_status_line_insert_hint); + leftCurve->set_hint(this->m_statusLine.end()); if (! remove_for_good) { // the subcurve is not removed for good, so we dont need to intersect