Handle net directive in navigator

This commit is contained in:
Seth Hillbrand 2024-04-18 17:34:28 -07:00
parent cd2925d3d7
commit 00538548f5
1 changed files with 10 additions and 0 deletions

View File

@ -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<const SCH_DIRECTIVE_LABEL*>( 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() );
}