Fix Abandon Edit

This commit is contained in:
wandererfan
2019-05-29 18:21:35 -04:00
committed by WandererFan
parent 74737f71fd
commit be257182ba
2 changed files with 10 additions and 1 deletions

View File

@@ -252,6 +252,11 @@ void QGEPath::restoreState()
{
// Base::Console().Message("QGEPath::restoreState()\n");
inEdit(false);
if (m_ghost != nullptr) {
if (m_ghost->scene() != nullptr) {
scene()->removeItem(m_ghost); //stop ghost from messing up brect
}
}
m_deltas = m_saveDeltas;
updatePath();
}