summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-03-16 14:05:14 +0100
committerThiago Macieira <thiago.macieira@nokia.com>2011-03-22 15:41:15 +0100
commitbef9fe90beb33e10bcfa03ecee4062b8d9f642ff (patch)
tree3739cb28a00d9f0b01603d7fdf9bc25a8007b3db /src
parent342d2ad8b4b6d92e7ae9ba2aa0beb94d5bc970b1 (diff)
downloadqt4-tools-bef9fe90beb33e10bcfa03ecee4062b8d9f642ff.tar.gz
Fix warning about maybe-uninitialised use of variable
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qdeclarativegridview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp
index c0cbed0637..0cbe1acc8c 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp
@@ -2237,6 +2237,7 @@ qreal QDeclarativeGridView::maxXExtent() const
} else {
highlightStart = d->highlightRangeStart;
highlightEnd = d->highlightRangeEnd;
+ lastItemPosition = 0;
if (d->model && d->model->count())
lastItemPosition = d->rowPosAt(d->model->count()-1);
}