[apps/graph] Fix Graph::Snapshot::reset()

m_graphRange.setDefault called the delegate's interestingXRange, which
uses expressions that might have been deleted before the call to reset
if there had been an exception (the pool is emptied).
This commit is contained in:
Léa Saviot
2018-11-26 10:37:57 +01:00
committed by EmilieNumworks
parent 55be86ef50
commit e04c8bd005

View File

@@ -33,7 +33,8 @@ App * App::Snapshot::unpack(Container * container) {
void App::Snapshot::reset() {
StorageFunctionApp::Snapshot::reset();
m_graphRange.setDefault();
*(modelVersion()) = 0;
*(rangeVersion()) = 0;
}
void App::Snapshot::storageDidChangeForRecord(const Ion::Storage::Record record) {