clean.cpp little bug fix

This commit is contained in:
Heikki Pulkkinen 2016-09-29 08:29:08 +02:00 committed by jean-pierre charras
parent 502d0a38be
commit ab0cf7dee1
1 changed files with 2 additions and 2 deletions

View File

@ -452,8 +452,8 @@ bool TRACKS_CLEANER::remove_duplicates_of_track( const TRACK *aTrack )
// Must be of the same type, on the same layer and the endpoints
// must be the same (maybe swapped)
if( (aTrack->Type() != other->Type()) &&
(aTrack->GetLayer() != other->GetLayer()) )
if( (aTrack->Type() == other->Type()) &&
(aTrack->GetLayer() == other->GetLayer()) )
{
if( ((aTrack->GetStart() == other->GetStart()) &&
(aTrack->GetEnd() == other->GetEnd())) ||