pcbnew: Minor update to ratsnest calc

BuildConnectivity updates the ratsnest after it completes.  By compiling
the ratsnest before connectivity, we update it twice with the dirty flag
being reset after connectivity updates.
This commit is contained in:
Seth Hillbrand 2020-06-16 11:18:52 -07:00
parent 15b95f2980
commit eb89d1c68b
4 changed files with 4 additions and 4 deletions

View File

@ -567,8 +567,8 @@ bool PANEL_SETUP_LAYERS::TransferDataFromWindow()
if( hasRemovedBoardItems )
{
// Rebuild list of nets (full ratsnest rebuild)
m_frame->Compile_Ratsnest( true );
m_pcb->BuildConnectivity();
m_frame->Compile_Ratsnest( true );
}
return true;

View File

@ -636,8 +636,8 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
SetCurrentNetClass( NETCLASS::Default );
// Rebuild list of nets (full ratsnest rebuild)
Compile_Ratsnest( true );
GetBoard()->BuildConnectivity();
Compile_Ratsnest( true );
onBoardLoaded();

View File

@ -896,8 +896,8 @@ void PCB_EDIT_FRAME::UpdateUserInterface()
// (layer and items visibility, colors ...)
// Rebuild list of nets (full ratsnest rebuild)
Compile_Ratsnest( true );
GetBoard()->BuildConnectivity();
Compile_Ratsnest( true );
// Update info shown by the horizontal toolbars
ReCreateLayerBox();

View File

@ -669,8 +669,8 @@ int PCBNEW_CONTROL::Paste( const TOOL_EVENT& aEvent )
{
placeBoardItems( clipBoard, true );
m_frame->Compile_Ratsnest( true );
m_frame->GetBoard()->BuildConnectivity();
m_frame->Compile_Ratsnest( true );
}
break;