mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare] Do not beautify after reduce interrupted simplification
This commit is contained in:
@@ -317,11 +317,10 @@ Expression Expression::ParseAndSimplify(const char * text, Context & context, Pr
|
||||
Expression Expression::simplify(Context & context, Preferences::AngleUnit angleUnit, bool replaceSymbols) {
|
||||
sSimplificationHasBeenInterrupted = false;
|
||||
Expression e = reduce(context, angleUnit, replaceSymbols);
|
||||
e = e.deepBeautify(context, angleUnit);
|
||||
if (sSimplificationHasBeenInterrupted) {
|
||||
return Expression();
|
||||
if (!sSimplificationHasBeenInterrupted) {
|
||||
e = e.deepBeautify(context, angleUnit);
|
||||
}
|
||||
return e;
|
||||
return sSimplificationHasBeenInterrupted ? Expression() : e;
|
||||
}
|
||||
|
||||
Expression Expression::ExpressionWithoutSymbols(Expression e, Context & context) {
|
||||
|
||||
Reference in New Issue
Block a user