add a wxASSERT just in case.

This commit is contained in:
jean-pierre charras 2017-09-15 11:20:07 +02:00
parent 93de82f0b2
commit cf178fd20a
1 changed files with 5 additions and 0 deletions

View File

@ -375,6 +375,11 @@ void WX_VIEW_CONTROLS::onScroll( wxScrollWinEvent& aEvent )
dist = linePanDelta;
else if( type == wxEVT_SCROLLWIN_LINEDOWN )
dist = -linePanDelta;
else
{
wxASSERT( "Unhandled event type" );
return;
}
VECTOR2D scroll = m_view->ToWorld( m_view->GetScreenPixelSize(), false ) * dist;