Fixes the import pin issue, that the they are shown in two different way https://gitlab.com/kicad/code/kicad/-/issues/11391

This commit is contained in:
Chetan Shinde 2022-05-22 04:42:22 +00:00 committed by Roberto Fernandez Bautista
parent fe17dca71f
commit 4e5febdb19
1 changed files with 7 additions and 1 deletions

View File

@ -1271,6 +1271,11 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
else
{
item = createSheetPin( sheet, label );
if( item->Type() == SCH_SHEET_PIN_T)
{
item->ClearSelected();
}
}
}
}
@ -1297,6 +1302,7 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
item->AutoplaceFields( /* aScreen */ nullptr, /* aManual */ false );
updatePreview();
if( item->Type() != SCH_SHEET_PIN_T )
m_selectionTool->AddItemToSel( item );
m_toolMgr->RunAction( ACTIONS::refreshPreview );