Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
Commita33453ca162dccc15d4dea434478b01410e5cac8 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-29 09:44:18 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-29 09:44:18 +0300
Filesfabed3d902e06ddd8277fe31ea5a346aa802b978 /src/Models/CellFormula.cpp
FMI-OOP-P2_Tables-a33453ca162dccc15d4dea434478b01410e5cac8.tar
FMI-OOP-P2_Tables-a33453ca162dccc15d4dea434478b01410e5cac8.tar.gz
FMI-OOP-P2_Tables-a33453ca162dccc15d4dea434478b01410e5cac8.zip
Parent6a2964208400e0ec0d650e6861c9b039f2db454e (diff)
Autocommit at 29.05.2022 @ 09:44
1 files changed, 1 insertions, 3 deletions
-rw-r--r--src/Models/CellFormula.cpp4
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp
index 061bbda..a23152a 100644
--- a/src/Models/CellFormula.cpp
+++ b/src/Models/CellFormula.cpp
@@ -45,9 +45,6 @@ double CellFormula::getNumeralValue() {
}
String CellFormula::getValueForPrint() {
- for (unsigned i = 0; i < formula.get_count(); i++)
- std::cout << "[" << formula[i].left->getValueForPrint() << " " << formula[i].right << std::endl;
- return "";
return String() += calculate();
}
@@ -65,6 +62,7 @@ void CellFormula::parseAndSetValue(const char* str) {
while (*str != 'C') str++;
unsigned col = atoi(++str);
while (*str != ' ') str++;
+ while (*str == ' ') str++;
cellToAdd = (*tableCells)[row][col];
currOp = *str;