git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45143
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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;
XmScrollBarCallbackStruct *cbs)
{
wxWindow *win = wxGetWindowFromTable(scrollbar);
+ wxCHECK_RET( win, _T("invalid widget in scrollbar callback") );
+
wxOrientation orientation = (wxOrientation)wxPtrToUInt(clientData);
wxEventType eventType = wxEVT_NULL;