Merge pull request #17632 from wwmayer/issue_17553

Fixes #17553
This commit is contained in:
Yorik van Havre
2024-11-04 18:14:18 +01:00
committed by GitHub
6 changed files with 127 additions and 8 deletions

View File

@@ -3628,9 +3628,10 @@ void Document::_removeObject(DocumentObject* pcObject)
else {
// for a rollback delete the object
signalTransactionRemove(*pcObject, 0);
breakDependency(pcObject, true);
}
breakDependency(pcObject, true);
// remove from map
pcObject->setStatus(ObjectStatus::Remove, false); // Unset the bit to be on the safe side
d->objectIdMap.erase(pcObject->_Id);