pcbnew: fix pad distance calc in gateways
The pad distance was fixed to 0, making the gateway priority set artificially to 1
This commit is contained in:
parent
cb90e5b9e2
commit
77eeda4191
|
@ -646,7 +646,7 @@ void DP_GATEWAYS::BuildGeneric( const VECTOR2I& p0_p, const VECTOR2I& p0_n, bool
|
||||||
SEG d_n[2], d_p[2];
|
SEG d_n[2], d_p[2];
|
||||||
|
|
||||||
const int padToGapThreshold = 3;
|
const int padToGapThreshold = 3;
|
||||||
int padDist = ( p0_p - p0_p ).EuclideanNorm();
|
int padDist = ( p0_n - p0_p ).EuclideanNorm();
|
||||||
|
|
||||||
st_p[0] = SEG(p0_p + VECTOR2I( -100, 0 ), p0_p + VECTOR2I( 100, 0 ) );
|
st_p[0] = SEG(p0_p + VECTOR2I( -100, 0 ), p0_p + VECTOR2I( 100, 0 ) );
|
||||||
st_n[0] = SEG(p0_n + VECTOR2I( -100, 0 ), p0_n + VECTOR2I( 100, 0 ) );
|
st_n[0] = SEG(p0_n + VECTOR2I( -100, 0 ), p0_n + VECTOR2I( 100, 0 ) );
|
||||||
|
|
Loading…
Reference in New Issue