Commit 747a3fa6 authored by charras's avatar charras

olved a bug in plot postscript format when drawing oblong pad

parent 8a71b1ae
...@@ -9,6 +9,8 @@ email address. ...@@ -9,6 +9,8 @@ email address.
================================================================================ ================================================================================
+pcbnew +pcbnew
Added a tool to the upper toolbar which gives and easy access to freeroute Added a tool to the upper toolbar which gives and easy access to freeroute
Solved a bug in plot postscript format when drawing oblong pads:
Bad oblong pad size after drawing a round pad
2008-Mar-13 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr> 2008-Mar-13 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
......
...@@ -573,7 +573,7 @@ void trace_1_pastille_RONDE_POST( wxPoint centre, int diametre, int modetrace ) ...@@ -573,7 +573,7 @@ void trace_1_pastille_RONDE_POST( wxPoint centre, int diametre, int modetrace )
if( modetrace == FILLED ) if( modetrace == FILLED )
{ {
fprintf( dest, "%d setlinewidth\n", g_PlotLine_Width ); SetCurrentLineWidthPS(0);
rayon = diam.x / 2; rayon = diam.x / 2;
if( rayon < 1 ) if( rayon < 1 )
rayon = 1; rayon = 1;
...@@ -588,7 +588,7 @@ void trace_1_pastille_RONDE_POST( wxPoint centre, int diametre, int modetrace ) ...@@ -588,7 +588,7 @@ void trace_1_pastille_RONDE_POST( wxPoint centre, int diametre, int modetrace )
rayon = 1; rayon = 1;
if( rayon < w ) if( rayon < w )
w = rayon; w = rayon;
fprintf( dest, "%d setlinewidth\n", w ); SetCurrentLineWidthPS(w);
fprintf( dest, "newpath %d %d %d 0 360 arc stroke\n", fprintf( dest, "newpath %d %d %d 0 360 arc stroke\n",
centre.x, centre.y, rayon ); centre.x, centre.y, rayon );
} }
......
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