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.
This commit is contained in:
jean-pierre charras 2020-12-08 17:52:30 +01:00
parent c611f62ade
commit 9c4eef2cef
1 changed files with 2 additions and 1 deletions

View File

@ -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 ) )
{