diff options
Autocommit at 29.05.2022 @ 08:13
2 files changed, 5 insertions, 1 deletions
| -rw-r--r-- | src/Models/CellFormula.cpp | 2 | ||||
| -rw-r--r-- | src/Models/CellInt.cpp | 4 |
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp index cf1c2cd..4e84681 100644 --- a/src/Models/CellFormula.cpp +++ b/src/Models/CellFormula.cpp @@ -39,7 +39,7 @@ CellFormula::CellFormula(const char* str, const List<List<Cell*>>* tableCells) : } double CellFormula::getNumeralValue() { - return 0; + return calculate(); } String CellFormula::getValueForPrint() { diff --git a/src/Models/CellInt.cpp b/src/Models/CellInt.cpp index a8f2db5..c6239e0 100644 --- a/src/Models/CellInt.cpp +++ b/src/Models/CellInt.cpp @@ -5,6 +5,10 @@ CellInt::CellInt(int value) { this->value = value; } +double CellInt::getNumeralValue() { + return value; +} + String CellInt::getValueForPrint() { return String() += value; } |
