Fix another place disallowing internal microvias.
Fixes https://gitlab.com/kicad/code/kicad/issues/8716
This commit is contained in:
parent
98616d2c96
commit
780a8a5154
|
@ -885,9 +885,8 @@ int ROUTER_TOOL::handleLayerSwitch( const TOOL_EVENT& aEvent, bool aForceVia )
|
|||
break;
|
||||
|
||||
case VIATYPE::MICROVIA:
|
||||
wxASSERT_MSG( !selectLayer, "Unexpected select layer for microvia (microvia layers are "
|
||||
"implicit)" );
|
||||
|
||||
if( targetLayer == UNDEFINED_LAYER )
|
||||
{
|
||||
if( currentLayer == F_Cu || currentLayer == In1_Cu )
|
||||
{
|
||||
// front-side microvia
|
||||
|
@ -902,8 +901,9 @@ int ROUTER_TOOL::handleLayerSwitch( const TOOL_EVENT& aEvent, bool aForceVia )
|
|||
}
|
||||
else
|
||||
{
|
||||
wxASSERT_MSG( false, "Invalid layer pair for microvia (must be on or adjacent to an "
|
||||
"outer layer)" );
|
||||
wxASSERT_MSG( false, "Invalid implicit layer pair for microvia (must be on or "
|
||||
"adjacent to an outer layer)." );
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue