diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-01-20 07:09:36 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-01-20 07:09:36 (GMT) |
commit | bfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872 (patch) | |
tree | 39b72d535ed5e75bb803b634e91eec0dea537286 | |
parent | 97994c845c92cf16902cf201400678f9d9791fe6 (diff) | |
download | Qt-bfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872.zip Qt-bfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872.tar.gz Qt-bfbba2d4b3e6371ee6d4b6c1b0ff1c54680b8872.tar.bz2 |
Crash
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicslistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicslistview.cpp b/src/declarative/graphicsitems/qmlgraphicslistview.cpp index 2752551..e0fa8f5 100644 --- a/src/declarative/graphicsitems/qmlgraphicslistview.cpp +++ b/src/declarative/graphicsitems/qmlgraphicslistview.cpp @@ -2472,7 +2472,7 @@ void QmlGraphicsListView::itemsInserted(int modelIndex, int count) // Update the indexes of the following visible items. for (; index < d->visibleItems.count(); ++index) { FxListItem *listItem = d->visibleItems.at(index); - if (listItem->item != d->currentItem->item) + if (d->currentItem && listItem->item != d->currentItem->item) listItem->setPosition(listItem->position() + diff); if (listItem->index != -1) listItem->index += count; |