Do not plot zero width oval holes in Gerber X2 drill files
In case there are zero width oval holes on the PCB, it is safer to not plot them at all, rather than plotting with width arbitrarily increased to 10 mils. This also makes Gerber outputs consistent with Excellon outputs.
This commit is contained in:
parent
ae02039ed4
commit
834d9335dd
|
@ -283,6 +283,10 @@ int GERBER_WRITER::createDrillFile( wxString& aFullFilename, bool aIsNpth,
|
|||
convertOblong2Segment( hole_descr.m_Hole_Size,
|
||||
hole_descr.m_Hole_Orient, start, end );
|
||||
int width = std::min( hole_descr.m_Hole_Size.x, hole_descr.m_Hole_Size.y );
|
||||
|
||||
if ( width == 0 )
|
||||
continue;
|
||||
|
||||
plotter.ThickSegment( start+hole_pos, end+hole_pos,
|
||||
width, FILLED, &gbr_metadata );
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue