PCBNew: don't grab the wrong parameter type when placing vias

This commit is contained in:
Mike Williams 2023-10-04 12:15:54 -04:00
parent c45ebfcccd
commit c2d7b26ebd
1 changed files with 1 additions and 4 deletions

View File

@ -939,10 +939,7 @@ int ROUTER_TOOL::handleLayerSwitch( const TOOL_EVENT& aEvent, bool aForceVia )
}
else
{
targetLayer = aEvent.Parameter<PCB_LAYER_ID>();
if( !enabledLayers.test( targetLayer ) )
return 0;
targetLayer = UNDEFINED_LAYER;
}
if( targetLayer != UNDEFINED_LAYER )