Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
Commitd8bad1cd43a6eba3a01100a5ab5d1f7c2b95ec34 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-30 22:24:04 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-30 22:24:04 +0300
Files23892aea3346371743a5608b611e9fa893b0097c /src/Models/Table.cpp
FMI-OOP-P2_Tables-d8bad1cd43a6eba3a01100a5ab5d1f7c2b95ec34.tar
FMI-OOP-P2_Tables-d8bad1cd43a6eba3a01100a5ab5d1f7c2b95ec34.tar.gz
FMI-OOP-P2_Tables-d8bad1cd43a6eba3a01100a5ab5d1f7c2b95ec34.zip
Parent3e16f4c814816d1d9641700a1c7ffd9e2158afc9 (diff)
Autocommit at 30.05.2022 @ 22:24
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/Models/Table.cpp2
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp
index 5e7f2a9..593100d 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -103,7 +103,7 @@ void Table::readFromFile(std::ifstream& inFile) {
}
inFile.get();
- if (*res.get_cstr() == '=')
+ if (res.get_cstr()[0] == '=')
cells[cells.get_count() - 1][colInd] = (Cell*)new CellFormula(res.get_cstr(), &cells);
else
cells[cells.get_count() - 1][colInd] = (Cell*)new CellString(res.get_cstr());