Gerbview: Read excellon files: fix incorrect handling of G85 command. (fixes lp:1485420)

This commit is contained in:
jean-pierre charras 2016-06-21 11:56:13 -04:00 committed by Wayne Stambaugh
parent 535f3ae006
commit 4212d99c3d
1 changed files with 4 additions and 1 deletions

View File

@ -537,12 +537,15 @@ bool EXCELLON_IMAGE::Execute_Drill_Command( char*& text )
}
gbritem = new GERBER_DRAW_ITEM( GetParent()->GetGerberLayout(), this );
GetParent()->GetGerberLayout()->m_Drawings.Append( gbritem );
if( m_SlotOn ) // Oval hole
if( m_SlotOn ) // Oblong hole
{
fillLineGBRITEM( gbritem,
tool->m_Num_Dcode, GetParent()->getActiveLayer(),
m_PreviousPos, m_CurrentPos,
tool->m_Size, false );
// the hole is made: reset the slot on command (G85)
// (it is needed for each oblong hole)
m_SlotOn = false;
}
else
{