Update WX_VIEW_CONTROLS::onMagnify() to recent changes.

This commit is contained in:
Garth Corral 2015-05-22 09:37:57 +02:00 committed by Maciej Suminski
parent 18fa766f53
commit e63cafa62a
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ void WX_VIEW_CONTROLS::onMagnify( wxMouseEvent& aEvent )
{
// Scale based on the magnification from our underlying magnification event.
VECTOR2D anchor = m_view->ToWorld( VECTOR2D( aEvent.GetX(), aEvent.GetY() ) );
setScale( m_view->GetScale() * ( aEvent.GetMagnification() + 1.0f ), anchor );
m_view->SetScale( m_view->GetScale() * ( aEvent.GetMagnification() + 1.0f ), anchor );
aEvent.Skip();
}