Add textbox text to description.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16573
This commit is contained in:
parent
ee3be0802c
commit
67cd446e6d
|
@ -465,7 +465,9 @@ bool PCB_TEXTBOX::HitTest( const BOX2I& aRect, bool aContained, int aAccuracy )
|
||||||
|
|
||||||
wxString PCB_TEXTBOX::GetItemDescription( UNITS_PROVIDER* aUnitsProvider ) const
|
wxString PCB_TEXTBOX::GetItemDescription( UNITS_PROVIDER* aUnitsProvider ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "PCB Text Box on %s" ), GetLayerName() );
|
return wxString::Format( _( "PCB Text Box '%s' on %s" ),
|
||||||
|
KIUI::EllipsizeMenuText( GetText() ),
|
||||||
|
GetLayerName() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue