src/gui/itemviews/qlistview.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
--- a/src/gui/itemviews/qlistview.cpp	Mon Mar 15 12:43:09 2010 +0200
+++ b/src/gui/itemviews/qlistview.cpp	Thu Apr 08 14:19:33 2010 +0300
@@ -2160,7 +2160,7 @@
     } else {
         if (flowPositions.isEmpty())
             return;
-        const int max = flowPositions.count() - 1;
+        const int max = scrollValueMap.count() - 1;
         if (vertical && flow() == QListView::TopToBottom && dy != 0) {
             int currentValue = qBound(0, verticalValue, max);
             int previousValue = qBound(0, currentValue + dy, max);