Need to select unconditionally target layer if not on copper
This commit is contained in:
Seth Hillbrand 2022-03-02 10:46:59 -08:00
parent 9396735733
commit 23479821e3
1 changed files with 1 additions and 2 deletions

View File

@ -689,8 +689,7 @@ int CONVERT_TOOL::CreateLines( const TOOL_EVENT& aEvent )
{
if( !IsCopperLayer( targetLayer ) )
{
if( copperLayer == UNSELECTED_LAYER )
copperLayer = frame->SelectOneLayer( F_Cu, LSET::AllNonCuMask() );
copperLayer = frame->SelectOneLayer( F_Cu, LSET::AllNonCuMask() );
if( copperLayer == UNDEFINED_LAYER ) // User canceled
return true;