bug with object being passed through ... corrected

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-11-04 16:33:09 +00:00
parent 508379ee46
commit 66cbc96ddf

View File

@ -314,7 +314,7 @@ void wxMenuItem::SetText(const wxString& label)
{
wxXmString label_str(label2);
XtVaSetValues ((Widget) m_buttonWidget,
XmNlabelString, label_str,
XmNlabelString, label_str(),
NULL);
if (mnem != 0)
XtVaSetValues ((Widget) m_buttonWidget, XmNmnemonic, mnem, NULL);