crash for items <= 1 fixed

This commit is contained in:
Uwe Rathmann 2023-09-26 16:42:45 +02:00
parent 19f7e344ff
commit 27f41dd5f6
1 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,9 @@ void QskSwipeView::gestureEvent( QskGestureEvent* event )
if( gesture->type() == QskGesture::Pan && gesture->state() == QskGesture::Started )
{
if ( itemCount() <= 1 )
return;
auto animator = dynamic_cast< QskStackBoxAnimator1* >( this->animator() );
if ( animator == nullptr )