Fixed bug in via cleanup control flow

This commit is contained in:
Lorenzo Marcantonio 2014-04-26 13:23:00 +02:00
parent c2af94ac03
commit 29c8ec4220
1 changed files with 2 additions and 1 deletions

View File

@ -208,6 +208,8 @@ bool TRACKS_CLEANER::clean_vias()
if( via->GetViaType() != VIA_THROUGH )
continue;
}
else
continue;
// Search and delete others vias at same location
TRACK* alt_track = track->Next();
@ -219,7 +221,6 @@ bool TRACKS_CLEANER::clean_vias()
VIA *alt_via = dynamic_cast<VIA*>( alt_track );
if( alt_via )
{
if( alt_via->GetViaType() != VIA_THROUGH )
continue;