Fix GeoFeatureGroup claimChildren in case some out-of-group item links to a child

This commit is contained in:
Stefan Tröger
2017-08-10 06:27:32 +02:00
committed by wmayer
parent a65856c022
commit c14e508c74
3 changed files with 11 additions and 6 deletions

View File

@@ -2674,7 +2674,6 @@ void Document::_remObject(DocumentObject* pcObject)
}
signalDeletedObject(*pcObject);
// TODO Check me if it's needed (2015-09-01, Fat-Zer)
pcObject->setStatus(ObjectStatus::Delete, false); // Unset the bit to be on the safe side
//remove the tip if needed
if (Tip.getValue() == pcObject) {
@@ -2695,6 +2694,7 @@ void Document::_remObject(DocumentObject* pcObject)
}
// remove from map
pcObject->setStatus(ObjectStatus::Delete, false); // Unset the bit to be on the safe side
d->objectMap.erase(pos);
for (std::vector<DocumentObject*>::iterator it = d->objectArray.begin(); it != d->objectArray.end(); ++it) {