diff options
Autocommit at 13.06.2022 @ 21:22
1 files changed, 9 insertions, 1 deletions
| -rw-r--r-- | src/Models/Table.cpp | 10 |
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index e108c5d..68908fd 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -79,10 +79,18 @@ void Table::readFromFile(std::ifstream& inFile) { if (inFile.peek() == '.') { buffer.add(inFile.get()); D(inFile, buffer); + W(inFile); + + if (inFile.peek() != ',') throwException(inFile, row); + cells[row].add((Cell*)new CellDouble(buffer.raw_data())); } - else + else { + W(inFile); + if (inFile.peek() != ',') throwException(inFile, row); + cells[row].add((Cell*)new CellInt(buffer.raw_data())); + } } } } |
