Refinement of the undo fix.

This commit is contained in:
Matthias Koefferlein 2021-04-24 18:51:57 +02:00
parent 3097ed1929
commit 36d8c08d22
1 changed files with 3 additions and 4 deletions

View File

@ -159,12 +159,11 @@ Manager::cancel ()
++m_current;
undo ();
} else {
// empty transactions .. just delete
erase_transactions (m_current, m_transactions.end ());
m_current = m_transactions.end ();
}
erase_transactions (m_current, m_transactions.end ());
m_current = m_transactions.end ();
}
}