From e26a9c2dfe3c94d3c7bd4b31a76d49c7b4341504 Mon Sep 17 00:00:00 2001 From: gibbz00 Date: Sun, 7 May 2023 08:38:16 +0200 Subject: [PATCH] Fix #22: 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. --- MoveToLayer/move_to_layer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MoveToLayer/move_to_layer.py b/MoveToLayer/move_to_layer.py index d906cc8..953965f 100644 --- a/MoveToLayer/move_to_layer.py +++ b/MoveToLayer/move_to_layer.py @@ -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