minor bugs in plot functions (bad document size in PS header and junction size) fixed
This commit is contained in:
parent
aa509dda2d
commit
c20d9b9328
|
@ -307,6 +307,8 @@ void PS_Plotter::start_plot( FILE *fout)
|
|||
//
|
||||
// (NOTE: m_Size.y is *supposed* to be listed before m_Size.x;
|
||||
// the order in which they are specified is not wrong!)
|
||||
// Also note sheet->m_Size is given in mils, not in decimils and must be
|
||||
// sheet->m_Size * 10 in decimils
|
||||
if( sheet->m_Name.Cmp( wxT( "User" ) ) == 0 )
|
||||
fprintf( output_file, "%%%%DocumentMedia: Custom %d %d 0 () ()\n",
|
||||
wxRound( sheet->m_Size.y * CONV_SCALE ),
|
||||
|
@ -315,8 +317,8 @@ void PS_Plotter::start_plot( FILE *fout)
|
|||
else // ( if sheet->m_Name does not equal "User" )
|
||||
fprintf( output_file, "%%%%DocumentMedia: %s %d %d 0 () ()\n",
|
||||
CONV_TO_UTF8( sheet->m_Name ),
|
||||
wxRound( sheet->m_Size.y * CONV_SCALE ),
|
||||
wxRound( sheet->m_Size.x * CONV_SCALE ) );
|
||||
wxRound( sheet->m_Size.y * 10 * CONV_SCALE ),
|
||||
wxRound( sheet->m_Size.x * 10 * CONV_SCALE ) );
|
||||
|
||||
fprintf( output_file, "%%%%Orientation: Landscape\n" );
|
||||
|
||||
|
|
|
@ -747,7 +747,7 @@ void PlotDrawlist( Plotter* plotter, SCH_ITEM* aDrawlist )
|
|||
#undef STRUCT
|
||||
#define STRUCT ( (DrawJunctionStruct*) aDrawlist )
|
||||
plotter->set_color( ReturnLayerColor( STRUCT->GetLayer() ) );
|
||||
plotter->circle( STRUCT->m_Pos, DRAWJUNCTION_SIZE, FILLED_SHAPE );
|
||||
plotter->circle( STRUCT->m_Pos, DRAWJUNCTION_SIZE*2, FILLED_SHAPE );
|
||||
break;
|
||||
|
||||
case TYPE_SCH_TEXT:
|
||||
|
|
Loading…
Reference in New Issue