Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
Commit0040102741289c225065a61263b266f640ddf6c7 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-29 09:59:22 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-29 09:59:22 +0300
Filesa9c06b4a8e6be48e05d913c012f824c55291b642 /src/Models/CellFormula.cpp
FMI-OOP-P2_Tables-0040102741289c225065a61263b266f640ddf6c7.tar
FMI-OOP-P2_Tables-0040102741289c225065a61263b266f640ddf6c7.tar.gz
FMI-OOP-P2_Tables-0040102741289c225065a61263b266f640ddf6c7.zip
Parent134dbe519f1bcc58ffd901758b4b582d455e02db (diff)
Autocommit at 29.05.2022 @ 09:59
1 files changed, 3 insertions, 1 deletions
-rw-r--r--src/Models/CellFormula.cpp4
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});
}
}