From 4d134e5522b41a1accff4fdc61075789af5cae25 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Mon, 15 Aug 2016 17:16:51 +0200 Subject: [PATCH] fix direction-depending DP tuning glitch --- pcbnew/router/pns_meander.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_meander.cpp b/pcbnew/router/pns_meander.cpp index dd9fd2cec1..5d50bfe012 100644 --- a/pcbnew/router/pns_meander.cpp +++ b/pcbnew/router/pns_meander.cpp @@ -231,7 +231,7 @@ SHAPE_LINE_CHAIN PNS_MEANDER_SHAPE::makeMiterShape( VECTOR2D aP, VECTOR2D aDir, double radius = (double) aDir.EuclideanNorm(); double correction = 0; if( m_dual && radius > m_meanCornerRadius ) - correction = (double)(m_baselineOffset * 2) * tan ( 22.5 * M_PI / 180.0 ); + correction = (double)(-2 * abs(m_baselineOffset)) * tan ( 22.5 * M_PI / 180.0 ); VECTOR2D dir_cu = dir_u.Resize( correction ); VECTOR2D dir_cv = dir_v.Resize( correction );