add a wxASSERT just in case.
This commit is contained in:
parent
93de82f0b2
commit
cf178fd20a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue