PCBnew: placing a blind/buried via sometimes incorrectly place a through via.

From master branch commit 36fba5bd7f
This commit is contained in:
Fabien Corona 2019-11-21 22:22:03 +01:00 committed by jean-pierre charras
parent 1e64524afb
commit 58fd6ac03e
1 changed files with 2 additions and 3 deletions

View File

@ -632,9 +632,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;
}