Fix recently introduced mojibake in text sample
During the samples-wide removal of obsolete wxT macros in
f58ea62596
, the macros were
accidentally removed also from the place where they were required
(string literal casted to void* and then retrieved as wxChar*). This led
to names for m_tab and m_enter controls displayed wrong when logging
text events.
Fix this by restoring wxS() in this particular place.
See https://github.com/wxWidgets/wxWidgets/pull/945
Closes https://github.com/wxWidgets/wxWidgets/pull/1226
This commit is contained in:
@@ -1200,11 +1200,11 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
|
||||
|
||||
m_tab = new MyTextCtrl( this, 100, "Multiline, allow <TAB> processing.",
|
||||
wxPoint(180,90), wxSize(200,70), wxTE_MULTILINE | wxTE_PROCESS_TAB );
|
||||
m_tab->SetClientData((void *)"tab");
|
||||
m_tab->SetClientData((void *)wxS("tab"));
|
||||
|
||||
m_enter = new MyTextCtrl( this, 100, "Multiline, allow <ENTER> processing.",
|
||||
wxPoint(180,170), wxSize(200,70), wxTE_MULTILINE | wxTE_PROCESS_ENTER );
|
||||
m_enter->SetClientData((void *)"enter");
|
||||
m_enter->SetClientData((void *)wxS("enter"));
|
||||
|
||||
m_textrich = new MyTextCtrl(this, wxID_ANY, "Allows more than 30Kb of text\n"
|
||||
"(on all Windows versions)\n"
|
||||
|
Reference in New Issue
Block a user