]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix after wxCStrData changes
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Mar 2007 14:20:12 +0000 (14:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Mar 2007 14:20:12 +0000 (14:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/combobox_native.cpp

index 1b2305ca8269bc67e1c6177a9784ecddffcaeb36..3138681bd6824c86b34666a8d976743cb2c4ed42 100644 (file)
@@ -197,10 +197,8 @@ void wxComboBox::SetValue(const wxString& value)
 {
     m_inSetValue = true;
 
 {
     m_inSetValue = true;
 
-    // Fix crash; probably an OpenMotif bug
-    const char* val = value.c_str() ? value.c_str() : "";
     XtVaSetValues( GetXmText(this),
     XtVaSetValues( GetXmText(this),
-                   XmNvalue, wxConstCast(val, char),
+                   XmNvalue, value.mb_str(),
                    NULL);
 
     m_inSetValue = false;
                    NULL);
 
     m_inSetValue = false;