From 168e0b492fa5d34bf2e9fb53d582c40986959d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 4 Jul 2019 10:26:05 +0200 Subject: [PATCH] [apps/calculation] Don't display approximate matrices results only --- apps/calculation/calculation.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/calculation/calculation.cpp b/apps/calculation/calculation.cpp index d7045b374..2f5e96c8a 100644 --- a/apps/calculation/calculation.cpp +++ b/apps/calculation/calculation.cpp @@ -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)) {