diff options
| Commit | a33453ca162dccc15d4dea434478b01410e5cac8 (patch) | |
|---|---|---|
| Author | 2022-05-29 09:44:18 +0300 | |
| Committer | 2022-05-29 09:44:18 +0300 | |
| Files | fabed3d902e06ddd8277fe31ea5a346aa802b978 /src | |
| FMI-OOP-P2_Tables-a33453ca162dccc15d4dea434478b01410e5cac8.tar FMI-OOP-P2_Tables-a33453ca162dccc15d4dea434478b01410e5cac8.tar.gz FMI-OOP-P2_Tables-a33453ca162dccc15d4dea434478b01410e5cac8.zip | ||
| Parent | 6a2964208400e0ec0d650e6861c9b039f2db454e (diff) | |
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; |
