summaryrefslogtreecommitdiff
path: root/src/controls/TableViewColumn.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/TableViewColumn.qml')
-rw-r--r--src/controls/TableViewColumn.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/TableViewColumn.qml b/src/controls/TableViewColumn.qml
index a5ba2e75..3336470e 100644
--- a/src/controls/TableViewColumn.qml
+++ b/src/controls/TableViewColumn.qml
@@ -132,7 +132,7 @@ QtObject {
if (__view.__columns[i] === this)
__index = i
for (var row = 0 ; row < listdata.children.length ; ++row) {
- var item = listdata.children[row+1]
+ var item = listdata.children[row+1] ? listdata.children[row+1].rowItem : undefined
if (item && item.children[1] && item.children[1].children[__index] && item.children[1].children[__index].children[0] &&
item.children[1].children[__index].children[0].hasOwnProperty("implicitWidth"))
minWidth = Math.max(minWidth, item.children[1].children[__index].children[0].implicitWidth)