From 468da441e55d45e17d5703ca4bdb373654f8daf1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 26 Aug 2023 15:59:06 +0100 Subject: [PATCH] Allow junctions to connect to labels. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15496 --- eeschema/sch_junction.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_junction.h b/eeschema/sch_junction.h index a953360b09..0a23e1cb70 100644 --- a/eeschema/sch_junction.h +++ b/eeschema/sch_junction.h @@ -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