diff options
Diffstat (limited to 'src/quick/items/qquicktableview.cpp')
-rw-r--r-- | src/quick/items/qquicktableview.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/quick/items/qquicktableview.cpp b/src/quick/items/qquicktableview.cpp index 571ac90008..1b71bd5a53 100644 --- a/src/quick/items/qquicktableview.cpp +++ b/src/quick/items/qquicktableview.cpp @@ -1955,11 +1955,8 @@ void QQuickTableViewPrivate::calculateTopLeft(QPoint &topLeftCell, QPointF &topL const auto syncView_d = syncView->d_func(); if (syncView_d->loadedItems.isEmpty()) { - // The sync view contains no loaded items. This probably means - // that it has not been rebuilt yet. Which also means that - // we cannot rebuild anything before this happens. - topLeftCell.rx() = kEdgeIndexNotSet; - topLeftCell.ry() = kEdgeIndexNotSet; + topLeftCell.rx() = 0; + topLeftCell.ry() = 0; return; } |