From 67cd446e6df0c8b3b01f89b53beda90b151d2fc4 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 11 Jan 2024 11:38:03 +0000 Subject: [PATCH] Add textbox text to description. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16573 --- pcbnew/pcb_textbox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/pcb_textbox.cpp b/pcbnew/pcb_textbox.cpp index e3b37bee6c..53b2e3877a 100644 --- a/pcbnew/pcb_textbox.cpp +++ b/pcbnew/pcb_textbox.cpp @@ -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() ); }