[apps/calculation/calculation] Remove redundancy

When each Calculation had its own text buffer, the Expression of an
overflowing output text was Undefined. Hence that Expression could have
been Undefined without the corresponding text being 'undef'. That situation
may not happen anymore since Calculation are stored in a shared buffer.
This commit is contained in:
Ruben Dashyan
2020-02-03 16:51:57 +01:00
committed by Léa Saviot
parent cb119b796a
commit 2ae435a628

View File

@@ -231,9 +231,8 @@ Calculation::DisplayOutput Calculation::displayOutput(Context * context) {
strcmp(exactOutputText(), approximateOutputText(NumberOfSignificantDigits::UserDefined)) == 0
||
// If the approximate output is 'unreal' or the exact result is 'undef'
(strcmp(exactOutputText(), Undefined::Name()) == 0 ||
strcmp(approximateOutputText(NumberOfSignificantDigits::Maximal), Unreal::Name()) == 0 ||
exactOutput().type() == ExpressionNode::Type::Undefined)
strcmp(exactOutputText(), Undefined::Name()) == 0 ||
strcmp(approximateOutputText(NumberOfSignificantDigits::Maximal), Unreal::Name()) == 0
||
/* If the approximate output is 'undef' and the input and exactOutput are
* equal */