From 747a3fa66fcd4a9e9bac286dded517c5318aeb18 Mon Sep 17 00:00:00 2001 From: charras Date: Fri, 14 Mar 2008 16:02:47 +0000 Subject: [PATCH] olved a bug in plot postscript format when drawing oblong pad --- change_log.txt | 2 ++ pcbnew/plotps.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index d7438500ef..167edfcd37 100644 --- a/change_log.txt +++ b/change_log.txt @@ -9,6 +9,8 @@ email address. ================================================================================ +pcbnew 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 diff --git a/pcbnew/plotps.cpp b/pcbnew/plotps.cpp index 811b4bf38e..fb0513a134 100644 --- a/pcbnew/plotps.cpp +++ b/pcbnew/plotps.cpp @@ -573,7 +573,7 @@ void trace_1_pastille_RONDE_POST( wxPoint centre, int diametre, int modetrace ) if( modetrace == FILLED ) { - fprintf( dest, "%d setlinewidth\n", g_PlotLine_Width ); + SetCurrentLineWidthPS(0); rayon = diam.x / 2; if( rayon < 1 ) rayon = 1; @@ -588,7 +588,7 @@ void trace_1_pastille_RONDE_POST( wxPoint centre, int diametre, int modetrace ) rayon = 1; if( rayon < w ) w = rayon; - fprintf( dest, "%d setlinewidth\n", w ); + SetCurrentLineWidthPS(w); fprintf( dest, "newpath %d %d %d 0 360 arc stroke\n", centre.x, centre.y, rayon ); }