From d8bad1cd43a6eba3a01100a5ab5d1f7c2b95ec34 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 30 May 2022 22:24:04 +0300 Subject: Autocommit at 30.05.2022 @ 22:24 --- src/Models/Table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Models/Table.cpp') 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()); -- cgit v1.3.1-23-gd82d