mirror of https://github.com/CGAL/cgal
Initialize the hint (pointer to the status line) when the curve is removed from the status line
This commit is contained in:
parent
a42566fd01
commit
261bd95fc7
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue