EAGLE: fix missing undefined layer check for rectangle zones.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16619
This commit is contained in:
parent
faeec25557
commit
27b560b439
|
@ -903,6 +903,9 @@ void PCB_IO_EAGLE::loadPlain( wxXmlNode* aGraphics )
|
|||
|
||||
ERECT r( gr );
|
||||
PCB_LAYER_ID layer = kicad_layer( r.layer );
|
||||
|
||||
if( layer != UNDEFINED_LAYER )
|
||||
{
|
||||
ZONE* zone = new ZONE( m_board );
|
||||
|
||||
m_board->Add( zone, ADD_MODE::APPEND );
|
||||
|
@ -923,6 +926,7 @@ void PCB_IO_EAGLE::loadPlain( wxXmlNode* aGraphics )
|
|||
|
||||
// this is not my fault:
|
||||
zone->SetBorderDisplayStyle( outline_hatch, ZONE::GetDefaultHatchPitch(), true );
|
||||
}
|
||||
|
||||
m_xpath->pop();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue