diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-02-02 03:20:11 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2011-02-02 03:20:11 (GMT) |
commit | 49df52abc004419f35bb6b508fb681c028a7c679 (patch) | |
tree | 506c1872db84c0ec67417210806fa4324b792937 /src/declarative/graphicsitems | |
parent | 88b072b3644cfd960367096ae0103e8ddef0d06d (diff) | |
download | Qt-49df52abc004419f35bb6b508fb681c028a7c679.zip Qt-49df52abc004419f35bb6b508fb681c028a7c679.tar.gz Qt-49df52abc004419f35bb6b508fb681c028a7c679.tar.bz2 |
Avoid index-out-of bounds related crash in Grid
Task-number: QTBUG-16959
Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativepositioners.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepositioners.cpp b/src/declarative/graphicsitems/qdeclarativepositioners.cpp index 9450647..4560d32 100644 --- a/src/declarative/graphicsitems/qdeclarativepositioners.cpp +++ b/src/declarative/graphicsitems/qdeclarativepositioners.cpp @@ -939,7 +939,7 @@ void QDeclarativeGrid::doPositioning(QSizeF *contentSize) if (i==0) maxColWidth << 0; - if (childIndex == positionedItems.count()) + if (childIndex == visibleItems.count()) break; const PositionedItem &child = visibleItems.at(childIndex++); |