X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8f1f08817c0e184f61961788c8007d62ec90cef..c9d01afd8237e2a63c11f5ef4050d57a8651b2db:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index 98eed8bbd5..2f855b19a8 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -35,7 +35,6 @@ #include "wx/tbarbase.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_ABSTRACT_CLASS(wxToolBarBase, wxControl) IMPLEMENT_DYNAMIC_CLASS(wxToolBarTool, wxObject) @@ -44,7 +43,6 @@ BEGIN_EVENT_TABLE(wxToolBarBase, wxControl) EVT_SIZE(wxToolBarBase::OnSize) EVT_IDLE(wxToolBarBase::OnIdle) END_EVENT_TABLE() -#endif // Keep a list of all toolbars created, so you can tell whether a toolbar // is still valid: a tool may have quit the toolbar. @@ -90,6 +88,7 @@ wxToolBarTool::wxToolBarTool(int theIndex, } m_shortHelpString = helpS1; m_longHelpString = helpS2; + m_control = (wxControl*) NULL; } wxToolBarTool::wxToolBarTool(wxControl *control)