]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/combobox_native.cpp
Use our own getters and properties for wxVisualAttributes
[wxWidgets.git] / src / motif / combobox_native.cpp
index 1b2305ca8269bc67e1c6177a9784ecddffcaeb36..3138681bd6824c86b34666a8d976743cb2c4ed42 100644 (file)
@@ -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;