crash for items <= 1 fixed
This commit is contained in:
parent
19f7e344ff
commit
27f41dd5f6
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue