From b8dfc1f26a0ff8166c55cffc2cabdd4b8996d36a Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 18 Jun 2019 22:44:03 +0100 Subject: [PATCH] Fix import sheet pin. Fixes: lp:1829314 * https://bugs.launchpad.net/kicad/+bug/1829314 --- eeschema/tools/sch_drawing_tools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index c534e2e38e..9348f45792 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -467,6 +467,7 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent ) { EDA_ITEM* item = nullptr; bool immediateMode = aEvent.HasPosition(); + bool importMode = aEvent.IsAction( &EE_ACTIONS::importSheetPin ); KICAD_T type = aEvent.Parameter(); m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true ); @@ -544,7 +545,7 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent ) break; } - if( aEvent.IsAction( &EE_ACTIONS::importSheetPin ) ) + if( importMode ) { label = m_frame->ImportHierLabel( sheet );