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:
@@ -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: < > & ' " "
|
||||
" but you can still place &mnemonics...");
|
||||
"for the symbols: < > && ' " "
|
||||
" but you can still use &mnemonics too");
|
||||
#endif // wxUSE_MARKUP
|
||||
|
||||
// right pane
|
||||
|
Reference in New Issue
Block a user