diff options
Autocommit at 30.05.2022 @ 22:24
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | src/Models/Table.cpp | 2 |
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()); |
