Gerbview: fix Bug #1511654 (incorrect rendering of some filled polygons in some Gerber files)
This commit is contained in:
parent
8931df339e
commit
90d6e7568e
|
@ -548,6 +548,7 @@ bool GERBER_IMAGE::Execute_G_Command( char*& text, int G_command )
|
||||||
|
|
||||||
case GC_TURN_ON_POLY_FILL:
|
case GC_TURN_ON_POLY_FILL:
|
||||||
m_PolygonFillMode = true;
|
m_PolygonFillMode = true;
|
||||||
|
m_Exposure = false;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GC_TURN_OFF_POLY_FILL:
|
case GC_TURN_OFF_POLY_FILL:
|
||||||
|
@ -617,7 +618,7 @@ bool GERBER_IMAGE::Execute_DCODE_Command( char*& text, int D_commande )
|
||||||
switch( D_commande )
|
switch( D_commande )
|
||||||
{
|
{
|
||||||
case 1: // code D01 Draw line, exposure ON
|
case 1: // code D01 Draw line, exposure ON
|
||||||
if( !m_Exposure )
|
if( !m_Exposure ) // Start a new polygon outline:
|
||||||
{
|
{
|
||||||
m_Exposure = true;
|
m_Exposure = true;
|
||||||
gbritem = new GERBER_DRAW_ITEM( layout, this );
|
gbritem = new GERBER_DRAW_ITEM( layout, this );
|
||||||
|
|
Loading…
Reference in New Issue