From 9a183206da9d750b6c4e80de5e68340b3a6c245b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 23 Mar 2007 14:20:12 +0000 Subject: [PATCH] compilation fix after wxCStrData changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/combobox_native.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/motif/combobox_native.cpp b/src/motif/combobox_native.cpp index 1b2305ca82..3138681bd6 100644 --- a/src/motif/combobox_native.cpp +++ b/src/motif/combobox_native.cpp @@ -197,10 +197,8 @@ void wxComboBox::SetValue(const wxString& value) { m_inSetValue = true; - // Fix crash; probably an OpenMotif bug - const char* val = value.c_str() ? value.c_str() : ""; XtVaSetValues( GetXmText(this), - XmNvalue, wxConstCast(val, char), + XmNvalue, value.mb_str(), NULL); m_inSetValue = false; -- 2.45.2