net navigator: handle no-connects

This commit is contained in:
Mike Williams 2024-04-11 10:17:46 -04:00
parent faca7ee05b
commit 067ef9657e
1 changed files with 11 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include <sch_bus_entry.h>
#include <sch_line.h>
#include <sch_junction.h>
#include <sch_no_connect.h>
#include <sch_sheet_pin.h>
#include <schematic.h>
#include <string_utils.h>
@ -138,6 +139,16 @@ static wxString GetNetNavigatorItemText( const SCH_ITEM* aItem,
aUnitsProvider->MessageTextFromValue( junction->GetPosition().y ) );
break;
}
case SCH_NO_CONNECT_T:
{
const SCH_NO_CONNECT* nc = static_cast<const SCH_NO_CONNECT*>( aItem );
wxCHECK( nc, retv );
retv.Printf( _( "No-Connect at %s, %s" ),
aUnitsProvider->MessageTextFromValue( nc->GetPosition().x ),
aUnitsProvider->MessageTextFromValue( nc->GetPosition().y ) );
break;
}
case SCH_BUS_WIRE_ENTRY_T:
{
const SCH_BUS_WIRE_ENTRY* entry = static_cast<const SCH_BUS_WIRE_ENTRY*>( aItem );