PADSTACK::Compare() now tests id also to include drill hole size
This commit is contained in:
parent
1ead191274
commit
9de1af02d0
|
@ -3747,6 +3747,13 @@ int PADSTACK::Compare( PADSTACK* lhs, PADSTACK* rhs )
|
||||||
rhs->hash = rhs->makeHash();
|
rhs->hash = rhs->makeHash();
|
||||||
|
|
||||||
int result = lhs->hash.compare( rhs->hash );
|
int result = lhs->hash.compare( rhs->hash );
|
||||||
|
if( result )
|
||||||
|
return result;
|
||||||
|
|
||||||
|
// Via names hold the drill diameters, so we have to include those to discern
|
||||||
|
// between two vias with same copper size but with different drill sizes.
|
||||||
|
result = lhs->padstack_id.compare( rhs->padstack_id );
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue