Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
1 files changed, 9 insertions, 1 deletions
-rw-r--r--src/Models/Table.cpp10
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()));
+ }
}
}
}