Browse Source

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

Fixes: lp:1802302
https://bugs.launchpad.net/kicad/+bug/1802302
pull/13/head
jean-pierre charras 7 years ago
parent
commit
f452eafcd6
  1. 8
      common/legacy_gal/eda_draw_frame.cpp

8
common/legacy_gal/eda_draw_frame.cpp

@ -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 );
}

Loading…
Cancel
Save