]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/scrolbar.cpp
revert togglable tools to previous state if the change was vetoed by OnLeftClick()
[wxWidgets.git] / src / motif / scrolbar.cpp
index ff018e26b2796c64a9e2cfc33ec8cf45b975fb0f..bb3f97a8d24262bd4506ade89412a5af3da16c89 100644 (file)
@@ -13,6 +13,9 @@
 #pragma implementation "scrolbar.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/defs.h"
 #include "wx/scrolbar.h"
 
@@ -104,7 +107,7 @@ void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageS
 
 void wxScrollBar::Command(wxCommandEvent& event)
 {
-    SetThumbPosition(event.m_commandInt);
+    SetThumbPosition(event.GetInt());
     ProcessCommand(event);
 }