From 29c8ec422079a32b0cb5cda8f6b1d5a2cc7b499c Mon Sep 17 00:00:00 2001 From: Lorenzo Marcantonio Date: Sat, 26 Apr 2014 13:23:00 +0200 Subject: [PATCH] Fixed bug in via cleanup control flow --- pcbnew/clean.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/clean.cpp b/pcbnew/clean.cpp index 9bf5a83c95..4bcfb5127e 100644 --- a/pcbnew/clean.cpp +++ b/pcbnew/clean.cpp @@ -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( alt_track ); if( alt_via ) { - if( alt_via->GetViaType() != VIA_THROUGH ) continue;