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:
parent
15b95f2980
commit
eb89d1c68b
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue