From 4afe4c0aa04bc70b4de2636d9eacaca7e187c097 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 21 Apr 2022 09:00:04 +0200 Subject: [PATCH] Fp editor: Add automatic zoom when loading a fp from library. When loading from a board, the automatic zoom was already in play. --- pcbnew/footprint_editor_utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcbnew/footprint_editor_utils.cpp b/pcbnew/footprint_editor_utils.cpp index 5b5380f235..31b6c1fad7 100644 --- a/pcbnew/footprint_editor_utils.cpp +++ b/pcbnew/footprint_editor_utils.cpp @@ -84,8 +84,7 @@ void FOOTPRINT_EDIT_FRAME::LoadFootprintFromLibrary( LIB_ID aFPID ) val->SetText( wxT( "Val**" ) ); } - if( m_zoomSelectBox->GetSelection() == 0 ) - Zoom_Automatique( false ); + Zoom_Automatique( false ); Update3DView( true, true );