From 5a00c7823c1e6970e4506491c6996c15ac0dcca1 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 19 Jun 2016 11:53:40 +0200 Subject: [PATCH] Gerbview: Read excellon files: fix incorrect handling of G85 command. --- gerbview/excellon_read_drill_file.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gerbview/excellon_read_drill_file.cpp b/gerbview/excellon_read_drill_file.cpp index eb010085e2..2042c92df4 100644 --- a/gerbview/excellon_read_drill_file.cpp +++ b/gerbview/excellon_read_drill_file.cpp @@ -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 {