diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-04-14 03:03:31 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-04-14 03:03:31 (GMT) |
commit | 013aa31cea9f82b53b988d910c42c5590b32c1cc (patch) | |
tree | 514b65dfd0840cb6dcf81c26fad2fd9900c9bfa2 /src | |
parent | f6505f9f2eb4c594d3a249655879117e2a136468 (diff) | |
download | Qt-013aa31cea9f82b53b988d910c42c5590b32c1cc.zip Qt-013aa31cea9f82b53b988d910c42c5590b32c1cc.tar.gz Qt-013aa31cea9f82b53b988d910c42c5590b32c1cc.tar.bz2 |
Fix uninitialized variable.
Change-Id: Ieebfc72cf9b31c9d2522487ed7cd860f060ef0be
Task-number: QTBUG-15877
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativegridview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp index 21bfc59..af2b804 100644 --- a/src/declarative/graphicsitems/qdeclarativegridview.cpp +++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp @@ -2250,7 +2250,7 @@ qreal QDeclarativeGridView::maxXExtent() const qreal extent; qreal highlightStart; qreal highlightEnd; - qreal lastItemPosition; + qreal lastItemPosition = 0; if (d->isRightToLeftTopToBottom()){ highlightStart = d->highlightRangeStartValid ? d->highlightRangeEnd : d->size(); highlightEnd = d->highlightRangeEndValid ? d->highlightRangeStart : d->size(); |