← Back to team overview

kicad-developers team mailing list archive

Re: bug: postscript plot for back silkscreen flips arcs

 

On 02/23/2012 11:59 PM, Simon Schubert wrote:
> Hi,
>
> I just noticed that arcs change from 90 degrees to 270 degrees on the
> back silkscreen when plotting them as postscript.  See [1] for an
> example (yes, this is a pdf, but the original ps contains the same). 
> All these odd rounded arcs should actually be on the outside of the pad,
> not towards the inside.

The attached patch fixes this for me.

cheers
  simon

=== modified file 'common/common_plotPS_functions.cpp'
--- common/common_plotPS_functions.cpp	2012-01-23 04:33:36 +0000
+++ common/common_plotPS_functions.cpp	2012-02-24 00:10:54 +0000
@@ -153,6 +153,9 @@
     if( radius <= 0 )
         return;
 
+    if( StAngle > EndAngle )
+        EXCHG( StAngle, EndAngle );
+
     set_current_line_width( width );
 
     // Calculate start point.

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References