Recalculate ratsnest when moving footprint in legacy

Legacy shows the local ratsnest when moving a footprint.  Therefore we
need to recalculate it when the move ends.

Fixes: lp:1775473
* https://bugs.launchpad.net/kicad/+bug/1775473
This commit is contained in:
Seth Hillbrand 2018-06-06 15:40:11 -07:00
parent abd8927d71
commit 40d2535625
1 changed files with 2 additions and 1 deletions

View File

@ -414,7 +414,8 @@ void PCB_BASE_FRAME::PlaceModule( MODULE* aModule, wxDC* aDC, bool aRecreateRats
if( aRecreateRatsnest )
m_Pcb->GetConnectivity()->Update( aModule );
if( GetBoard()->IsElementVisible( LAYER_RATSNEST ) && aRecreateRatsnest )
if( ( GetBoard()->IsElementVisible( LAYER_RATSNEST ) || displ_opts->m_Show_Module_Ratsnest )
&& aRecreateRatsnest )
Compile_Ratsnest( aDC, true );
if( aDC )