From 9c4eef2cef4fab740b6bd330dc1f599ddcda788f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 8 Dec 2020 17:52:30 +0100 Subject: [PATCH] Fix a missing view update when loading a footprint from the fp viewer. For some reason, a footprint loaded from the fp viewer did not have its view parameters fully updated (view bounding box not moved to the right place). The fix ensure these parameters are updated. --- pcbnew/tools/pcb_editor_control.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/pcb_editor_control.cpp b/pcbnew/tools/pcb_editor_control.cpp index 386a60c2f8..c263d35651 100644 --- a/pcbnew/tools/pcb_editor_control.cpp +++ b/pcbnew/tools/pcb_editor_control.cpp @@ -927,7 +927,8 @@ int PCB_EDITOR_CONTROL::PlaceModule( const TOOL_EVENT& aEvent ) { fp->SetPosition( wxPoint( cursorPos.x, cursorPos.y ) ); selection().SetReferencePoint( cursorPos ); - getView()->Update( & selection() ); + getView()->Update( &selection() ); + getView()->Update( fp ); } else if( fp && evt->IsAction( &PCB_ACTIONS::properties ) ) {