Commit 19def3d5 authored by jean-pierre charras's avatar jean-pierre charras

Gerbview: Fixed compil problem in debug Mode. Pcbnew: try to fix an issue in...

Gerbview: Fixed compil problem in debug Mode. Pcbnew: try to fix an issue in export gencad  (incorrect rectangular pads)
parent bfeaeafe
...@@ -541,7 +541,7 @@ bool GERBER_IMAGE::ExecuteRS274XCommand( int command, ...@@ -541,7 +541,7 @@ bool GERBER_IMAGE::ExecuteRS274XCommand( int command,
else else
GetLayerParams().m_LayerNegative = false; GetLayerParams().m_LayerNegative = false;
D( printf( "%22s: LAYER_POLARITY m_LayerNegative=%s\n", __func__, D( printf( "%22s: LAYER_POLARITY m_LayerNegative=%s\n", __func__,
m_LayerNegative ? "true" : "false" ); ) GetLayerParams().m_LayerNegative ? "true" : "false" ); )
break; break;
case INCLUDE_FILE: case INCLUDE_FILE:
......
...@@ -239,7 +239,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb ) ...@@ -239,7 +239,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb )
fprintf( file, " %s %d\n", pad_type, pad->m_Drill.x ); fprintf( file, " %s %d\n", pad_type, pad->m_Drill.x );
fprintf( file, "RECTANGLE %d %d %d %d\n", fprintf( file, "RECTANGLE %d %d %d %d\n",
pad->m_Offset.x - dx, -(pad->m_Offset.y - dy), pad->m_Offset.x - dx, -(pad->m_Offset.y - dy),
pad->m_Offset.x + dx, -(pad->m_Offset.y + dy) ); pad->m_Size.x, pad->m_Size.y );
break; break;
case PAD_OVAL: /* Create outline by 2 lines and 2 arcs */ case PAD_OVAL: /* Create outline by 2 lines and 2 arcs */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment