Gerbview: Fixed compil problem in debug Mode. Pcbnew: try to fix an issue in export gencad (incorrect rectangular pads)

This commit is contained in:
jean-pierre charras 2010-10-18 12:49:09 +02:00
parent bfeaeafe50
commit 19def3d56b
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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 */