Simply removing the line does it as `LayerStdName` is not being used
anywhere apart from a commented out logging statement. I'm not entirely
sure how this broke, as the binding is still exposed in https://
docs.kicad.org/doxygen-python-nightly/namespacepcbnew.html.
This commit is contained in:
gibbz00
2023-05-07 08:38:16 +02:00
parent 15c0c97518
commit e26a9c2dfe

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