Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models
diff options
context:
space:
mode:
2 files changed, 5 insertions, 1 deletions
-rw-r--r--src/Models/CellFormula.cpp2
-rw-r--r--src/Models/CellInt.cpp4
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;
}