Fix import sheet pin.

Fixes: lp:1829314
* https://bugs.launchpad.net/kicad/+bug/1829314
This commit is contained in:
Jeff Young 2019-06-18 22:44:03 +01:00
parent 581b5257e1
commit b8dfc1f26a
1 changed files with 2 additions and 1 deletions

View File

@ -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<KICAD_T>();
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 );