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:
parent
3e640030f3
commit
f452eafcd6
|
@ -1478,8 +1478,8 @@ void EDA_DRAW_FRAME::SetNextZoomAndRedraw( const wxPoint& aCenterPoint, bool aWa
|
||||||
if( m_zoomSelectBox )
|
if( m_zoomSelectBox )
|
||||||
m_zoomSelectBox->SetSelection( idx );
|
m_zoomSelectBox->SetSelection( idx );
|
||||||
|
|
||||||
if( GetScreen()->SetZoom( GetScreen()->m_ZoomList[idx] ) )
|
GetScreen()->SetZoom( GetScreen()->m_ZoomList[idx] );
|
||||||
RedrawScreen( aCenterPoint, aWarpPointer );
|
RedrawScreen( aCenterPoint, aWarpPointer );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1504,8 +1504,8 @@ void EDA_DRAW_FRAME::SetPreviousZoomAndRedraw( const wxPoint& aCenterPoint, bool
|
||||||
if( m_zoomSelectBox )
|
if( m_zoomSelectBox )
|
||||||
m_zoomSelectBox->SetSelection( idx );
|
m_zoomSelectBox->SetSelection( idx );
|
||||||
|
|
||||||
if( GetScreen()->SetZoom( GetScreen()->m_ZoomList[idx] ) )
|
GetScreen()->SetZoom( GetScreen()->m_ZoomList[idx] );
|
||||||
RedrawScreen( aCenterPoint, aWarpPointer );
|
RedrawScreen( aCenterPoint, aWarpPointer );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue