]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/scrolbar.cpp
fixed wxBitmap<->wxImage conversion to not exchange red and blue components
[wxWidgets.git] / src / motif / scrolbar.cpp
index 789220c16fa2e0350d8cb88574e91ccce58f31bf..6cbdf29c23e300da9c6e4353ab4ca48a424a44a3 100644 (file)
@@ -12,7 +12,6 @@
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/defs.h"
 #include "wx/scrolbar.h"
 
 #ifdef __VMS__
 #include "wx/scrolbar.h"
 
 #ifdef __VMS__
@@ -126,6 +125,8 @@ static void wxScrollBarCallback(Widget widget, XtPointer clientData,
                                 XmScaleCallbackStruct *cbs)
 {
     wxScrollBar *scrollBar = (wxScrollBar*)wxGetWindowFromTable(widget);
                                 XmScaleCallbackStruct *cbs)
 {
     wxScrollBar *scrollBar = (wxScrollBar*)wxGetWindowFromTable(widget);
+    wxCHECK_RET( scrollBar, _T("invalid widget in scrollbar callback") );
+
     wxOrientation orientation = (wxOrientation)wxPtrToUInt(clientData);
     wxEventType eventType = wxEVT_NULL;
 
     wxOrientation orientation = (wxOrientation)wxPtrToUInt(clientData);
     wxEventType eventType = wxEVT_NULL;