Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
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 421fae9..2862c51 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -31,7 +31,7 @@ bool containsNumber(const char*& str) {
void Table::readFromFile(std::ifstream& inFile) {
unsigned commaCount = countOfCommas(inFile);
unsigned colInd = 0;
- cells.add(List<Cell*>());
+ cells.add(List<Cell*>(commaCount));
while (inFile.peek() != EOF) {
while (inFile.peek() == ' ') inFile.get();