X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/312ebad4cd1fad97a79aaed7102611df88806410..222702b112dcc7bebe018d6f4d66fe469fefd02c:/src/motif/slider.cpp diff --git a/src/motif/slider.cpp b/src/motif/slider.cpp index fdd2ff7358..4d32280ae4 100644 --- a/src/motif/slider.cpp +++ b/src/motif/slider.cpp @@ -235,7 +235,9 @@ void wxSliderCallback (Widget widget, XtPointer clientData, } wxScrollEvent event(scrollEvent, slider->GetId()); - XtVaGetValues (widget, XmNvalue, &event.m_commandInt, NULL); + int commandInt = event.GetInt(); + XtVaGetValues (widget, XmNvalue, &commandInt, NULL); + event.SetInt(commandInt); event.SetEventObject(slider); slider->GetEventHandler()->ProcessEvent(event);