Initialize the hint (pointer to the status line) when the curve is removed from the status line

This commit is contained in:
Efi Fogel 2017-11-14 17:52:15 +02:00
parent a42566fd01
commit 261bd95fc7
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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