From 61c1f6a7d43e69b80a2f9f012bc5152a2e576cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 12 Nov 2018 11:46:25 +0100 Subject: [PATCH] [poincare] Stop simplif. if reducing children triggered an interruption --- poincare/src/expression.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/poincare/src/expression.cpp b/poincare/src/expression.cpp index 313b7bda3..6a74a2538 100644 --- a/poincare/src/expression.cpp +++ b/poincare/src/expression.cpp @@ -354,6 +354,9 @@ Expression Expression::deepReduce(Context & context, Preferences::AngleUnit angl #endif deepReduceChildren(context, angleUnit, replaceSymbols); + if (sSimplificationHasBeenInterrupted) { + return *this; + } return shallowReduce(context, angleUnit, replaceSymbols); }