Browse Source

Don't try to close empty polygon

Fixes #4337
pull/16/head
Jon Evans 6 years ago
parent
commit
528ebf8d7d
  1. 5
      gerbview/rs274d.cpp

5
gerbview/rs274d.cpp

@ -557,7 +557,10 @@ bool GERBER_FILE_IMAGE::Execute_G_Command( char*& text, int G_command )
if( m_Exposure && GetLastItemInList() ) // End of polygon
{
GERBER_DRAW_ITEM * gbritem = GetLastItemInList();
gbritem->m_Polygon.Append( gbritem->m_Polygon.CVertex( 0 ) );
if( gbritem->m_Polygon.VertexCount() )
gbritem->m_Polygon.Append( gbritem->m_Polygon.CVertex( 0 ) );
StepAndRepeatItem( *gbritem );
}
m_Exposure = false;

Loading…
Cancel
Save