[apps/calculation] Don't display approximate matrices results only

This commit is contained in:
Léa Saviot
2019-07-04 10:26:05 +02:00
committed by Émilie Feral
parent f017a8d03c
commit 168e0b492f

View File

@@ -174,12 +174,10 @@ Calculation::DisplayOutput Calculation::displayOutput(Context * context) {
m_displayOutput = DisplayOutput::ExactOnly;
} else if (input().recursivelyMatches(
[](const Expression e, Context * c) {
/* If the input contains:
* - Random
* - Round
* or involves a Matrix, we only display the approximate output. */
/* If the input contains Random or Round we only display the
* approximate output. */
ExpressionNode::Type t = e.type();
return (t == ExpressionNode::Type::Random) || (t == ExpressionNode::Type::Round) || Expression::IsMatrix(e, c);
return (t == ExpressionNode::Type::Random) || (t == ExpressionNode::Type::Round);
},
context, true))
{