mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[poincare] Avoid returning partial simplification when the
simplification process has been interrupted
This commit is contained in:
committed by
EmilieNumworks
parent
e4c6636b08
commit
59fdcde548
@@ -71,10 +71,7 @@ const char * Function::name() const {
|
||||
|
||||
Poincare::Expression * Function::expression(Poincare::Context * context) const {
|
||||
if (m_expression == nullptr) {
|
||||
m_expression = Expression::parse(m_text);
|
||||
if (m_expression) {
|
||||
Expression::Simplify(&m_expression, *context);
|
||||
}
|
||||
m_expression = Expression::ParseAndSimplify(m_text, *context);
|
||||
}
|
||||
return m_expression;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user