From 00538548f5b68c3d0159a42852f5a718b5f435aa Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 18 Apr 2024 17:34:28 -0700 Subject: [PATCH] Handle net directive in navigator --- eeschema/net_navigator.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/eeschema/net_navigator.cpp b/eeschema/net_navigator.cpp index d0d9c195ba..a534b40f36 100644 --- a/eeschema/net_navigator.cpp +++ b/eeschema/net_navigator.cpp @@ -175,6 +175,16 @@ static wxString GetNetNavigatorItemText( const SCH_ITEM* aItem, aUnitsProvider->MessageTextFromValue( entry->GetEnd().y ) ); break; } + case SCH_DIRECTIVE_LABEL_T: + { + const SCH_DIRECTIVE_LABEL* entry = static_cast( aItem ); + wxCHECK( entry, retv ); + + retv.Printf( _( "Netclass label '%s' at %s, %s" ), UnescapeString( entry->GetText() ), + aUnitsProvider->MessageTextFromValue( entry->GetPosition().x ), + aUnitsProvider->MessageTextFromValue( entry->GetPosition().y ) ); + break; + } default: retv.Printf( _( "Unhandled item type %d" ), aItem->Type() ); }