From d484fbd93cce0ecfe242418eb34ba40183eec5dc Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Fri, 24 Feb 2012 18:17:03 +0100 Subject: [PATCH] Pcbnew: fix bad arcs in plot postscript (from Simon Schubert) --- common/common_plotPS_functions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/common_plotPS_functions.cpp b/common/common_plotPS_functions.cpp index f30b0f1921..0aee2ce25d 100644 --- a/common/common_plotPS_functions.cpp +++ b/common/common_plotPS_functions.cpp @@ -153,6 +153,9 @@ void PS_PLOTTER::arc( wxPoint centre, int StAngle, int EndAngle, int radius, if( radius <= 0 ) return; + if( StAngle > EndAngle ) + EXCHG( StAngle, EndAngle ); + set_current_line_width( width ); // Calculate start point.