From e04c8bd005c827d14d508b18a6ab152c70f3589e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 26 Nov 2018 10:37:57 +0100 Subject: [PATCH] [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). --- apps/graph/app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/graph/app.cpp b/apps/graph/app.cpp index 9f0bf27d1..82ffd6d16 100644 --- a/apps/graph/app.cpp +++ b/apps/graph/app.cpp @@ -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) {