From 27f41dd5f612a2d5f7ae45485017caf5bbaa152f Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 26 Sep 2023 16:42:45 +0200 Subject: [PATCH] crash for items <= 1 fixed --- src/controls/QskSwipeView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controls/QskSwipeView.cpp b/src/controls/QskSwipeView.cpp index 8e712a16..c71b0f07 100644 --- a/src/controls/QskSwipeView.cpp +++ b/src/controls/QskSwipeView.cpp @@ -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 )