Eeschema: Be sure the screen is refreshed when changing the zoom level.

Fixes: lp:1802302
https://bugs.launchpad.net/kicad/+bug/1802302
This commit is contained in:
jean-pierre charras 2018-12-14 12:51:30 +01:00
parent 3e640030f3
commit f452eafcd6
1 changed files with 4 additions and 4 deletions

View File

@ -1478,8 +1478,8 @@ void EDA_DRAW_FRAME::SetNextZoomAndRedraw( const wxPoint& aCenterPoint, bool aWa
if( m_zoomSelectBox )
m_zoomSelectBox->SetSelection( idx );
if( GetScreen()->SetZoom( GetScreen()->m_ZoomList[idx] ) )
RedrawScreen( aCenterPoint, aWarpPointer );
GetScreen()->SetZoom( GetScreen()->m_ZoomList[idx] );
RedrawScreen( aCenterPoint, aWarpPointer );
}
@ -1504,8 +1504,8 @@ void EDA_DRAW_FRAME::SetPreviousZoomAndRedraw( const wxPoint& aCenterPoint, bool
if( m_zoomSelectBox )
m_zoomSelectBox->SetSelection( idx );
if( GetScreen()->SetZoom( GetScreen()->m_ZoomList[idx] ) )
RedrawScreen( aCenterPoint, aWarpPointer );
GetScreen()->SetZoom( GetScreen()->m_ZoomList[idx] );
RedrawScreen( aCenterPoint, aWarpPointer );
}