X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..c4b4f847e20cf495b55ddd67ff70ad95239b5aa3:/src/motif/choice.cpp diff --git a/src/motif/choice.cpp b/src/motif/choice.cpp index ba418a03e9..585c467600 100644 --- a/src/motif/choice.cpp +++ b/src/motif/choice.cpp @@ -23,10 +23,9 @@ #ifndef WX_PRECOMP #include "wx/utils.h" + #include "wx/arrstr.h" #endif -#include "wx/arrstr.h" - #ifdef __VMS__ #pragma message disable nosimpint #endif @@ -196,7 +195,7 @@ int wxChoice::DoInsert(const wxString& item, unsigned int pos) #ifndef XmNpositionIndex wxCHECK_MSG( pos == GetCount(), -1, wxT("insert not implemented")); #endif - Widget w = XtVaCreateManagedWidget (wxStripMenuCodes(item), + Widget w = XtVaCreateManagedWidget (GetLabelText(item), #if wxUSE_GADGETS xmPushButtonGadgetClass, (Widget) m_menuWidget, #else