From a0a893815d9fb9af7a3c0a6dfc8a6f980d32e62a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 30 May 2022 21:18:41 +0300 Subject: Autocommit at 30.05.2022 @ 21:18 --- 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 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()); + cells.add(List(commaCount)); while (inFile.peek() != EOF) { while (inFile.peek() == ' ') inFile.get(); -- cgit v1.3.1-23-gd82d