From c805b52c3952836d344faaa22a4e51489c1f5ce2 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 16 May 2020 15:52:47 +0200 Subject: [PATCH] Tool pad enumerate: show it only in footprint editor. In board editor, its use makes no sense, and crash Pcbnew. --- pcbnew/tools/pad_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/pad_tool.cpp b/pcbnew/tools/pad_tool.cpp index 2e46e7f89a..cb4bb6c0c6 100644 --- a/pcbnew/tools/pad_tool.cpp +++ b/pcbnew/tools/pad_tool.cpp @@ -73,6 +73,7 @@ bool PAD_TOOL::Init() if( m_editModules ) { + menu.AddItem( PCB_ACTIONS::enumeratePads, SELECTION_CONDITIONS::ShowAlways, 400 ); menu.AddItem( PCB_ACTIONS::createPadFromShapes, SELECTION_CONDITIONS::NotEmpty, 400 ); menu.AddItem( PCB_ACTIONS::explodePadToShapes, singlePadSel, 400 ); } @@ -80,7 +81,6 @@ bool PAD_TOOL::Init() menu.AddItem( PCB_ACTIONS::copyPadSettings, singlePadSel, 400 ); menu.AddItem( PCB_ACTIONS::applyPadSettings, padSel, 400 ); menu.AddItem( PCB_ACTIONS::pushPadSettings, singlePadSel, 400 ); - menu.AddItem( PCB_ACTIONS::enumeratePads, SELECTION_CONDITIONS::ShowAlways, 400 ); } return true;