X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec75d791f043b3b43cac9825a2c62e9d5321e616..4a9dba0e561d2485d9235eab7b51aac8729f1b10:/src/motif/control.cpp diff --git a/src/motif/control.cpp b/src/motif/control.cpp index af57174fe6..a5a8fc3bfa 100644 --- a/src/motif/control.cpp +++ b/src/motif/control.cpp @@ -105,23 +105,11 @@ wxString wxControl::GetLabel() const return wxEmptyString; XmString text; - char *s; XtVaGetValues (widget, XmNlabelString, &text, NULL); - if (XmStringGetLtoR (text, XmSTRING_DEFAULT_CHARSET, &s)) - { - wxString str(s); - XtFree (s); - XmStringFree(text); - return str; - } - else - { - // XmStringFree(text); - return wxEmptyString; - } + return wxXmStringToString( text ); } bool wxControl::ProcessCommand(wxCommandEvent & event)