From a3f2ab30dc088b7d3fa73dbc30527deec7888561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 22 Aug 2019 10:07:34 +0200 Subject: [PATCH] [apps/calculation] Handle pool failure while calculations are slided Exmaple : 1+1 identity(30) -> Failure while 1+1 is slided on the right --- apps/calculation/calculation_store.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/calculation/calculation_store.cpp b/apps/calculation/calculation_store.cpp index 472889d66..79ae7f18e 100644 --- a/apps/calculation/calculation_store.cpp +++ b/apps/calculation/calculation_store.cpp @@ -142,6 +142,10 @@ void CalculationStore::deleteAll() { } void CalculationStore::tidy() { + if (m_slidedBuffer) { + deleteAll(); + return; + } resetMemoizedModelsAfterCalculationIndex(-1); for (Calculation * c : *this) { c->tidy();