Properties: show via friendly name

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13635
This commit is contained in:
Jon Evans 2023-01-23 08:56:14 -05:00
parent 09b83b95d0
commit e11012fe06
1 changed files with 7 additions and 1 deletions

View File

@ -851,7 +851,13 @@ double PCB_VIA::ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const
wxString PCB_TRACK::GetFriendlyName() const wxString PCB_TRACK::GetFriendlyName() const
{ {
return Type() == PCB_ARC_T ? _( "Track (arc)" ) : _( "Track" ); switch( Type() )
{
case PCB_ARC_T: return _( "Track (arc)" );
case PCB_VIA_T: return _( "Via" );
case PCB_TRACE_T:
default: return _( "Track" );
}
} }