Browse Source

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.
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
1a6f039bb5
  1. 2
      pcbnew/router/pns_diff_pair.cpp
  2. 2
      pcbnew/router/pns_topology.cpp

2
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 ) );

2
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 )

Loading…
Cancel
Save