index error fixed
This commit is contained in:
parent
fb5885b3d7
commit
4c156706a5
@ -416,7 +416,7 @@ int QskLinearBox::insertItem( int index, QQuickItem* item )
|
|||||||
|
|
||||||
if ( index < engine.count() - 1 )
|
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 ) )
|
if ( auto nextItem = engine.itemAt( i ) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user