Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
1 files changed, 3 insertions, 1 deletions
-rw-r--r--src/Models/CellFormula.cpp4
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp
index 4a8aad1..388af73 100644
--- a/src/Models/CellFormula.cpp
+++ b/src/Models/CellFormula.cpp
@@ -64,7 +64,7 @@ void CellFormula::parseAndSetValue(const char* str) {
while (*str != ' ') str++;
while (*str == ' ') str++;
- cellToAdd = (CellDouble)((*tableCells)[row][col]);
+ cellToAdd = (*tableCells)[row][col];
currOp = *str;
}
else {
@@ -82,6 +82,8 @@ void CellFormula::parseAndSetValue(const char* str) {
if (prev.right == '*' || prev.right == '/') prev.right *= -1;
}
+ std::cout << formula.get_count() << std::endl;
+ std::cout << cellToAdd << " " << currOp << std::endl;
formula.add({cellToAdd, currOp});
}
}