PADSTACK::Compare() now tests id also to include drill hole size

This commit is contained in:
dickelbeck 2008-10-30 18:53:39 +00:00
parent 1ead191274
commit 9de1af02d0
1 changed files with 7 additions and 0 deletions

View File

@ -3747,6 +3747,13 @@ int PADSTACK::Compare( PADSTACK* lhs, PADSTACK* rhs )
rhs->hash = rhs->makeHash();
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;
}