Ignore the drill oval keyword; x either equals y or it doesn't.
Fixes https://gitlab.com/kicad/code/kicad/issues/9193
This commit is contained in:
parent
40a0f25a3e
commit
a71d856e94
|
@ -120,9 +120,8 @@ bool KICADPAD::parseDrill( const SEXPR::SEXPR* aDrill )
|
|||
|
||||
if( child->IsSymbol() )
|
||||
{
|
||||
if( child->GetSymbol() == "oval" && nchild >= 4 )
|
||||
if( child->GetSymbol() == "oval" )
|
||||
{
|
||||
m_drill.oval = true;
|
||||
child = aDrill->GetChild( ++idx );
|
||||
}
|
||||
else
|
||||
|
@ -182,6 +181,9 @@ bool KICADPAD::parseDrill( const SEXPR::SEXPR* aDrill )
|
|||
}
|
||||
|
||||
m_drill.size.y = y;
|
||||
|
||||
if( m_drill.size.y != m_drill.size.x )
|
||||
m_drill.oval = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue