From ee15a4c9e4b6624f83340aec3e9590a5b55e90f8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 19 Jun 2019 19:31:11 +0200 Subject: [PATCH] Avoid assertions when using wxGenericStaticText in widgets sample Clicking on the "Generic wxStaticText" box resulted in several assertions because the markup string contained both a single "&" and a "&" used for the mnemonic. Double the former to avoid misinterpreting it as a mnemonic character too. --- samples/widgets/static.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index 163d500cda..31a24c3837 100644 --- a/samples/widgets/static.cpp +++ b/samples/widgets/static.cpp @@ -346,8 +346,8 @@ void StaticWidgetsPage::CreateContent() #if wxUSE_MARKUP m_textLabelWithMarkup->SetValue("Another label, this time decorated " "with markup; here you need entities " - "for the symbols: < > & ' " " - " but you can still place &mnemonics..."); + "for the symbols: < > && ' " " + " but you can still use &mnemonics too"); #endif // wxUSE_MARKUP // right pane