diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2012-01-25 14:43:07 +1000 |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2012-01-25 14:43:07 +1000 |
commit | c3601a8db91bc777ea859d6a796dfab6a218675e (patch) | |
tree | d2a4f6c83bec3cddcce020966cccac72be3aa04a /examples/declarative/qtquick1/modelviews/abstractitemmodel/model.cpp | |
parent | 35794301d188b731a7b596d92fc632fff58586c0 (diff) | |
parent | 149f6afe321ce59aebe4ce2f9dddd1881d0ac22b (diff) | |
download | qtdeclarative-animation-refactor.tar.gz |
Merge branch 'master' into animation-refactorwip/animation-refactoranimation-refactor
Conflicts:
tests/auto/declarative/declarative.pro
Change-Id: Ie339be2989fac553d351f3077869f1847367b504
Diffstat (limited to 'examples/declarative/qtquick1/modelviews/abstractitemmodel/model.cpp')
-rw-r--r-- | examples/declarative/qtquick1/modelviews/abstractitemmodel/model.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/qtquick1/modelviews/abstractitemmodel/model.cpp b/examples/declarative/qtquick1/modelviews/abstractitemmodel/model.cpp index f2397c3380..078294f900 100644 --- a/examples/declarative/qtquick1/modelviews/abstractitemmodel/model.cpp +++ b/examples/declarative/qtquick1/modelviews/abstractitemmodel/model.cpp @@ -2,7 +2,7 @@ ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) +** Contact: http://www.qt-project.org/ ** ** This file is part of the examples of the Qt Toolkit. ** @@ -77,7 +77,7 @@ int AnimalModel::rowCount(const QModelIndex & parent) const { } QVariant AnimalModel::data(const QModelIndex & index, int role) const { - if (index.row() < 0 || index.row() > m_animals.count()) + if (index.row() < 0 || index.row() >= m_animals.count()) return QVariant(); const Animal &animal = m_animals[index.row()]; |