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.
This commit is contained in:
Vadim Zeitlin
2019-06-19 19:31:11 +02:00
parent a93b1416a7
commit ee15a4c9e4

View File

@@ -346,8 +346,8 @@ void StaticWidgetsPage::CreateContent()
#if wxUSE_MARKUP
m_textLabelWithMarkup->SetValue("Another label, this time <b>decorated</b> "
"with <u>markup</u>; here you need entities "
"for the symbols: &lt; &gt; &amp; &apos; &quot; "
" but you can still place &mnemonics...");
"for the symbols: &lt; &gt; &amp;&amp; &apos; &quot; "
" but you can still use &mnemonics too");
#endif // wxUSE_MARKUP
// right pane