compilation fix after wxCStrData changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
NULL);
|
||||||
|
|
||||||
m_inSetValue = false;
|
m_inSetValue = false;
|
||||||
|
Reference in New Issue
Block a user