Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 0 deletions
-rw-r--r--src/Models/Table.cpp2
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp
index 232d066..21fb6a3 100644
--- a/src/Models/Table.cpp
+++ b/src/Models/Table.cpp
@@ -2,4 +2,6 @@
Table::Table(unsigned rows, unsigned cols) {
cells = List<List<Cell*>>(rows);
+ for (unsigned i = 0; i < rows; i++)
+ cells[i] = List<Cell*>(cols);
}