From 1a6f039bb5d4dbebbb39c2c9921c406c870dfe5e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 8 Oct 2018 07:30:17 -0700 Subject: [PATCH] pcbnew: Fix minor miscalculation in dp length The commonParallellProjection had an odd ordering of parameters that was not followed by callers. This corrects the ordering to standard for each. --- pcbnew/router/pns_diff_pair.cpp | 2 +- pcbnew/router/pns_topology.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/router/pns_diff_pair.cpp b/pcbnew/router/pns_diff_pair.cpp index e4a05e9603..e6e1019aa6 100644 --- a/pcbnew/router/pns_diff_pair.cpp +++ b/pcbnew/router/pns_diff_pair.cpp @@ -771,7 +771,7 @@ DP_PRIMITIVE_PAIR DIFF_PAIR::EndingPrimitives() } -bool commonParallelProjection( SEG n, SEG p, SEG &pClip, SEG& nClip ) +bool commonParallelProjection( SEG p, SEG n, SEG &pClip, SEG& nClip ) { SEG n_proj_p( p.LineProject( n.A ), p.LineProject( n.B ) ); diff --git a/pcbnew/router/pns_topology.cpp b/pcbnew/router/pns_topology.cpp index ea7d16e1cd..0612835276 100644 --- a/pcbnew/router/pns_topology.cpp +++ b/pcbnew/router/pns_topology.cpp @@ -282,7 +282,7 @@ const ITEM_SET TOPOLOGY::ConnectedItems( ITEM* aStart, int aKindMask ) } -bool commonParallelProjection( SEG n, SEG p, SEG &pClip, SEG& nClip ); +bool commonParallelProjection( SEG p, SEG n, SEG &pClip, SEG& nClip ); bool TOPOLOGY::AssembleDiffPair( ITEM* aStart, DIFF_PAIR& aPair )