From f452eafcd6e50889f93acf631cb0edb98aec8554 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 14 Dec 2018 12:51:30 +0100 Subject: [PATCH] Eeschema: Be sure the screen is refreshed when changing the zoom level. Fixes: lp:1802302 https://bugs.launchpad.net/kicad/+bug/1802302 --- common/legacy_gal/eda_draw_frame.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/legacy_gal/eda_draw_frame.cpp b/common/legacy_gal/eda_draw_frame.cpp index 83f63f5a9f..5536068538 100644 --- a/common/legacy_gal/eda_draw_frame.cpp +++ b/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 ); }