Allow junctions to connect to labels.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15496
This commit is contained in:
Jeff Young 2023-08-26 15:59:06 +01:00
parent 25967b4a0f
commit 468da441e5
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ public:
bool CanConnect( const SCH_ITEM* aItem ) const override
{
return aItem->IsConnectable() && ( aItem->Type() == SCH_LINE_T
|| aItem->Type() == SCH_SYMBOL_T );
|| aItem->Type() == SCH_SYMBOL_T
|| aItem->Type() == SCH_LABEL_T
|| aItem->Type() == SCH_GLOBAL_LABEL_T
|| aItem->Type() == SCH_HIER_LABEL_T
|| aItem->Type() == SCH_DIRECTIVE_LABEL_T );
}
wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider ) const override