Commit 29c8ec42 authored by Lorenzo Marcantonio's avatar Lorenzo Marcantonio

Fixed bug in via cleanup control flow

parent c2af94ac
...@@ -208,6 +208,8 @@ bool TRACKS_CLEANER::clean_vias() ...@@ -208,6 +208,8 @@ bool TRACKS_CLEANER::clean_vias()
if( via->GetViaType() != VIA_THROUGH ) if( via->GetViaType() != VIA_THROUGH )
continue; continue;
} }
else
continue;
// Search and delete others vias at same location // Search and delete others vias at same location
TRACK* alt_track = track->Next(); TRACK* alt_track = track->Next();
...@@ -219,7 +221,6 @@ bool TRACKS_CLEANER::clean_vias() ...@@ -219,7 +221,6 @@ bool TRACKS_CLEANER::clean_vias()
VIA *alt_via = dynamic_cast<VIA*>( alt_track ); VIA *alt_via = dynamic_cast<VIA*>( alt_track );
if( alt_via ) if( alt_via )
{ {
if( alt_via->GetViaType() != VIA_THROUGH ) if( alt_via->GetViaType() != VIA_THROUGH )
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment