aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/quick/items/qquicktableview.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/quick/items/qquicktableview.cpp b/src/quick/items/qquicktableview.cpp
index 48517edd4b..f7f0f64a68 100644
--- a/src/quick/items/qquicktableview.cpp
+++ b/src/quick/items/qquicktableview.cpp
@@ -7505,15 +7505,13 @@ void QQuickTableViewPrivate::initializeIndexMapping()
visualIndex[index].index = logicalIndex[index].index = index;
};
- if (!tableSize.isEmpty()) {
- if (visualIndices[0].size() != tableSize.width()
- || logicalIndices[0].size() != tableSize.width())
- initIndices(visualIndices[0], logicalIndices[0], tableSize.width());
+ if (visualIndices[0].size() != tableSize.width()
+ || logicalIndices[0].size() != tableSize.width())
+ initIndices(visualIndices[0], logicalIndices[0], tableSize.width());
- if (visualIndices[1].size() != tableSize.height()
- || logicalIndices[1].size() != tableSize.height())
- initIndices(visualIndices[1], logicalIndices[1], tableSize.height());
- }
+ if (visualIndices[1].size() != tableSize.height()
+ || logicalIndices[1].size() != tableSize.height())
+ initIndices(visualIndices[1], logicalIndices[1], tableSize.height());
}
void QQuickTableViewPrivate::clearIndexMapping()