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:
parent
c611f62ade
commit
9c4eef2cef
|
@ -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 ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue