Skip to content

Commit

Permalink
fix possible crash when reverting a document
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jun 9, 2018
1 parent c4fd48f commit 75a6c68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App/Document.cpp
Expand Up @@ -1755,6 +1755,7 @@ void Document::restore (void)
signalTransactionRemove(*(*obj), 0);
}
for (std::vector<DocumentObject*>::iterator obj = d->objectArray.begin(); obj != d->objectArray.end(); ++obj) {
(*obj)->setStatus(ObjectStatus::Destroy, true);
delete *obj;
}
d->objectArray.clear();
Expand Down

0 comments on commit 75a6c68

Please sign in to comment.