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:
Jeff Young 2021-09-19 20:44:54 +01:00
parent 40a0f25a3e
commit a71d856e94
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}