diff options
Autocommit at 29.05.2022 @ 09:44
1 files changed, 1 insertions, 3 deletions
| -rw-r--r-- | src/Models/CellFormula.cpp | 4 |
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; |
