Make sure new DRC_ENGINE is initialized.
Fixes https://gitlab.com/kicad/code/kicad/issues/5824
This commit is contained in:
parent
b369506697
commit
daac95400f
|
@ -152,6 +152,17 @@ BOARD* LoadBoard( wxString& aFileName, IO_MGR::PCB_FILE_T aFormat )
|
|||
BOARD_DESIGN_SETTINGS& bds = brd->GetDesignSettings();
|
||||
bds.m_DRCEngine = std::make_shared<DRC_ENGINE>( brd, &bds );
|
||||
|
||||
try
|
||||
{
|
||||
wxFileName rules = pro;
|
||||
rules.SetExt( DesignRulesFileExtension );
|
||||
bds.m_DRCEngine->InitEngine( rules );
|
||||
}
|
||||
catch( ... )
|
||||
{
|
||||
// Best efforts...
|
||||
}
|
||||
|
||||
for( MARKER_PCB* marker : brd->ResolveDRCExclusions() )
|
||||
brd->Add( marker );
|
||||
|
||||
|
|
Loading…
Reference in New Issue