index error fixed

This commit is contained in:
Uwe Rathmann 2019-09-14 15:37:32 +02:00
parent fb5885b3d7
commit 4c156706a5

View File

@ -416,7 +416,7 @@ int QskLinearBox::insertItem( int index, QQuickItem* item )
if ( index < engine.count() - 1 )
{
for ( int i = index; i < engine.count(); i++ )
for ( int i = index + 1; i < engine.count(); i++ )
{
if ( auto nextItem = engine.itemAt( i ) )
{