]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/slider.cpp
Fix to preserve alpha channel in Rotate90
[wxWidgets.git] / src / motif / slider.cpp
index fdd2ff73581cf91cecce84211edbdc366d6fb9af..4d32280ae4dd804c08833c68b4abf5bc98c39c71 100644 (file)
@@ -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);