From a33453ca162dccc15d4dea434478b01410e5cac8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 29 May 2022 09:44:18 +0300 Subject: Autocommit at 29.05.2022 @ 09:44 --- src/Models/CellFormula.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Models/CellFormula.cpp') 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; -- cgit v1.3.1-23-gd82d