[poincare] Stop simplif. if reducing children triggered an interruption

This commit is contained in:
Léa Saviot
2018-11-12 11:46:25 +01:00
committed by Émilie Feral
parent f94dc63d16
commit 61c1f6a7d4

View File

@@ -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);
}