Gerbview: Read excellon files: fix incorrect handling of G85 command.
This commit is contained in:
parent
dbd9b5e49e
commit
5a00c7823c
|
@ -545,11 +545,14 @@ bool EXCELLON_IMAGE::Execute_Drill_Command( char*& text )
|
||||||
gbritem = new GERBER_DRAW_ITEM( this );
|
gbritem = new GERBER_DRAW_ITEM( this );
|
||||||
m_Drawings.Append( gbritem );
|
m_Drawings.Append( gbritem );
|
||||||
|
|
||||||
if( m_SlotOn ) // Oval hole
|
if( m_SlotOn ) // Oblong hole
|
||||||
{
|
{
|
||||||
fillLineGBRITEM( gbritem, tool->m_Num_Dcode,
|
fillLineGBRITEM( gbritem, tool->m_Num_Dcode,
|
||||||
m_PreviousPos, m_CurrentPos,
|
m_PreviousPos, m_CurrentPos,
|
||||||
tool->m_Size, false );
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue