Add textbox text to description.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16573
This commit is contained in:
Jeff Young 2024-01-11 11:38:03 +00:00
parent ee3be0802c
commit 67cd446e6d
1 changed files with 3 additions and 1 deletions

View File

@ -465,7 +465,9 @@ bool PCB_TEXTBOX::HitTest( const BOX2I& aRect, bool aContained, int aAccuracy )
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() );
}