diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/location/qdeclarativegeomapitemview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/location/qdeclarativegeomapitemview.cpp b/src/imports/location/qdeclarativegeomapitemview.cpp index eff03b17..3e17e13a 100644 --- a/src/imports/location/qdeclarativegeomapitemview.cpp +++ b/src/imports/location/qdeclarativegeomapitemview.cpp @@ -262,6 +262,9 @@ void QDeclarativeGeoMapItemView::itemModelDataChanged(const QModelIndex &topLeft { Q_UNUSED(roles) + if (!m_itemData.count()) + return; + for (int i = topLeft.row(); i <= bottomRight.row(); ++i) { const QModelIndex index = itemModel_->index(i, 0); ItemData *itemData = m_itemData.at(i); |