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