This commit is contained in:
wmayer
2024-11-03 00:05:49 +01:00
parent bd813f1df0
commit 97ce877883
2 changed files with 18 additions and 7 deletions

View File

@@ -3625,9 +3625,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);