From 482fd866b306c07cf3b2f6b67cf5c547ab20b641 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 20 Apr 2018 09:48:11 -0700 Subject: [PATCH] Correct minor error in SPECTRA rounded-rect --- pcbnew/specctra_import_export/specctra_export.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/specctra_import_export/specctra_export.cpp b/pcbnew/specctra_import_export/specctra_export.cpp index 4e98f9c9c8..d791185e18 100644 --- a/pcbnew/specctra_import_export/specctra_export.cpp +++ b/pcbnew/specctra_import_export/specctra_export.cpp @@ -503,10 +503,10 @@ PADSTACK* SPECCTRA_DB::makePADSTACK( BOARD* aBoard, D_PAD* aPad ) /* calculates the coeff to compensate radius reduction of holes clearance * due to the segment approx. * For a circle the min radius is radius * cos( 2PI / s_CircleToSegmentsCount / 2) - * correctionFactor is 1 /cos( PI/s_CircleToSegmentsCount ) + * correctionFactor is cos( PI/s_CircleToSegmentsCount ) */ - double correctionFactor = 1.0 / cos( M_PI / (double) circleToSegmentsCount ); - int extra_clearance = KiROUND( rradius * (1.0 - correctionFactor ) ) + 1; + double correctionFactor = cos( M_PI / (double) circleToSegmentsCount ); + int extra_clearance = KiROUND( rradius * (1.0 - correctionFactor ) ); wxSize psize = aPad->GetSize(); psize.x += extra_clearance*2; psize.y += extra_clearance*2;