Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.cpp
diff options
context:
space:
mode:
Commit5c142c6d6eea8a1d1847a5fe774be4741a7ee0f3 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-29 13:34:52 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-29 13:34:52 +0300
Filese5a2f9eaf0d47e17a41f1be5abe6e24109e1229a /src/Models/CellFormula.cpp
FMI-OOP-P2_Tables-5c142c6d6eea8a1d1847a5fe774be4741a7ee0f3.tar
FMI-OOP-P2_Tables-5c142c6d6eea8a1d1847a5fe774be4741a7ee0f3.tar.gz
FMI-OOP-P2_Tables-5c142c6d6eea8a1d1847a5fe774be4741a7ee0f3.zip
Parent166ae83a89dbf7d0a5c95bd6b8e758b86bdedd7f (diff)
Autocommit at 29.05.2022 @ 13:34
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/Models/CellFormula.cpp2
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp
index 98e1abb..fda6ed2 100644
--- a/src/Models/CellFormula.cpp
+++ b/src/Models/CellFormula.cpp
@@ -48,7 +48,7 @@ double CellFormula::getNumeralValue() {
String CellFormula::getValueForPrint() {
for (unsigned i = 0; i < formula.get_count(); i++)
- std::cout << "[" << formula[i].left->getNumeralValue() << " " << formula[i].right << std::endl;
+ std::cout << "[" << formula[i].left->getNumeralValue() << " " << ((formula[i].right < 0) ? (int)formula[i].right : (char)formula[i].right) << std::endl;
return String() += calculate();
}