Merge pull request #23 from gibbz00/move_to_layer

Fix #22:
This commit is contained in:
easyw
2023-07-05 12:36:26 +02:00
committed by GitHub

View File

@ -154,8 +154,7 @@ class move_to_draw_layer( pcbnew.ActionPlugin ):
if modal_result == wx.ID_OK:
LayerName = aParameters.m_comboBoxLayer.GetStringSelection()
LayerIndex = aParameters.m_comboBoxLayer.FindString(LayerName)
LayerStdName = pcbnew.BOARD_GetStandardLayerName(LayerIndex)
#wx.LogMessage(LayerName+';'+str(LayerIndex)+';'+LayerStdName)
# wx.LogMessage(LayerName+';'+str(LayerIndex))
MoveToLayer(board, LayerIndex)
else:
None # Cancel