bugfix: pcbnew crashes when selected component is removed in OpenGL canvas
This commit is contained in:
parent
d38c9b205f
commit
78d9e7b789
|
@ -48,6 +48,9 @@
|
|||
#include <pcbnew.h>
|
||||
#include <io_mgr.h>
|
||||
|
||||
#include <tool/tool_manager.h>
|
||||
#include <tools/common_actions.h>
|
||||
|
||||
|
||||
void PCB_EDIT_FRAME::ReadPcbNetlist( const wxString& aNetlistFileName,
|
||||
const wxString& aCmpFileName,
|
||||
|
@ -108,6 +111,9 @@ void PCB_EDIT_FRAME::ReadPcbNetlist( const wxString& aNetlistFileName,
|
|||
}
|
||||
}
|
||||
|
||||
// Clear selection, just in case a selected item has to be removed
|
||||
m_toolManager->RunAction( COMMON_ACTIONS::selectionClear, true );
|
||||
|
||||
netlist.SortByReference();
|
||||
board->ReplaceNetlist( netlist, aDeleteSinglePadNets, aReporter );
|
||||
|
||||
|
|
Loading…
Reference in New Issue