Gerbview: Read excellon files: fix incorrect handling of G85 command.

This commit is contained in:
jean-pierre charras 2016-06-19 11:53:40 +02:00
parent dbd9b5e49e
commit 5a00c7823c
1 changed files with 4 additions and 1 deletions

View File

@ -545,11 +545,14 @@ bool EXCELLON_IMAGE::Execute_Drill_Command( char*& text )
gbritem = new GERBER_DRAW_ITEM( this );
m_Drawings.Append( gbritem );
if( m_SlotOn ) // Oval hole
if( m_SlotOn ) // Oblong hole
{
fillLineGBRITEM( gbritem, tool->m_Num_Dcode,
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
{