From 2dbf0096ccb9440ef7c525552c1427eb9eeef355 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 18 Dec 2019 09:50:10 -0500 Subject: [PATCH] ShuttleGui always sets name of static text box --- src/ShuttleGui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ShuttleGui.cpp b/src/ShuttleGui.cpp index 91d3f188a..e8e4aa908 100644 --- a/src/ShuttleGui.cpp +++ b/src/ShuttleGui.cpp @@ -862,6 +862,8 @@ wxStaticBox * ShuttleGuiBase::StartStatic(const wxString &Str, int iProp) #endif pBox->SetName(wxT("\a")); // non-empty string which screen readers do not read } + else + pBox->SetName( wxStripMenuCodes( Str ) ); mpSubSizer = std::make_unique( pBox, wxVERTICAL );