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.
This commit is contained in:
Seth Hillbrand 2018-10-08 07:30:17 -07:00
parent 81483a9670
commit 1a6f039bb5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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