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:
parent
fe17dca71f
commit
4e5febdb19
|
@ -1271,6 +1271,11 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
item = createSheetPin( sheet, label );
|
item = createSheetPin( sheet, label );
|
||||||
|
|
||||||
|
if( item->Type() == SCH_SHEET_PIN_T)
|
||||||
|
{
|
||||||
|
item->ClearSelected();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1297,7 +1302,8 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
|
||||||
item->AutoplaceFields( /* aScreen */ nullptr, /* aManual */ false );
|
item->AutoplaceFields( /* aScreen */ nullptr, /* aManual */ false );
|
||||||
updatePreview();
|
updatePreview();
|
||||||
|
|
||||||
m_selectionTool->AddItemToSel( item );
|
if( item->Type() != SCH_SHEET_PIN_T )
|
||||||
|
m_selectionTool->AddItemToSel( item );
|
||||||
|
|
||||||
m_toolMgr->RunAction( ACTIONS::refreshPreview );
|
m_toolMgr->RunAction( ACTIONS::refreshPreview );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue