From 1548dcfe8d13c7a7b09f81c16aa093208d4984ef Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 3 Jul 2019 18:08:28 +0100 Subject: [PATCH] Fix typo in Pad Enumeration tool. Fixes: lp:1831950 * https://bugs.launchpad.net/kicad/+bug/1831950 --- pcbnew/tools/pad_tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/pad_tool.cpp b/pcbnew/tools/pad_tool.cpp index 6acaf50ea1..fc72aaec4c 100644 --- a/pcbnew/tools/pad_tool.cpp +++ b/pcbnew/tools/pad_tool.cpp @@ -320,7 +320,7 @@ int PAD_TOOL::pushPadSettings( const TOOL_EVENT& aEvent ) int PAD_TOOL::EnumeratePads( const TOOL_EVENT& aEvent ) { - if( !board()->GetFirstModule() || !board()->GetFirstModule()->Pads().empty() ) + if( !board()->GetFirstModule() || board()->GetFirstModule()->Pads().empty() ) return 0; DIALOG_ENUM_PADS settingsDlg( frame() ); @@ -485,6 +485,7 @@ int PAD_TOOL::EnumeratePads( const TOOL_EVENT& aEvent ) evt->IsDblClick( BUT_LEFT ) ) { commit.Push( _( "Renumber pads" ) ); + frame()->PopTool(); break; }