From 36fba5bd7fcb61bf69c733fe7ee8c0a8d4d2c299 Mon Sep 17 00:00:00 2001 From: Fabien Corona Date: Thu, 21 Nov 2019 22:22:03 +0100 Subject: [PATCH] PCBnew: placing a blind/buried via sometimes incorrectly place a through via. Fixes #1819 https://gitlab.com/kicad/code/kicad/issues/1819 --- pcbnew/router/router_tool.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index 4ed515a2fc..83bcf16020 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -580,9 +580,8 @@ int ROUTER_TOOL::onViaCommand( const TOOL_EVENT& aEvent ) } // Convert blind/buried via to a through hole one, if it goes through all layers - if( viaType == VIA_BLIND_BURIED && ( ( currentLayer == B_Cu ) || ( currentLayer == F_Cu ) ) - && ( ( pairTop == B_Cu && pairBottom == F_Cu ) - || ( pairTop == F_Cu && pairBottom == B_Cu ) ) ) + if( viaType == VIA_BLIND_BURIED && ( ( targetLayer == B_Cu && currentLayer == F_Cu ) + || ( targetLayer == F_Cu && currentLayer == B_Cu ) ) ) { viaType = VIA_THROUGH; }