Skip to content

Commit

Permalink
crash for items <= 1 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Sep 26, 2023
1 parent 19f7e34 commit 27f41dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controls/QskSwipeView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 27f41dd

Please sign in to comment.