X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c383dbac927bbcc728365b2f8894a5ce676b19b..270a909e20a2c652fd816ad14407113ad0319c9d:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index a11a22d3a2..615d76c560 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -90,12 +90,14 @@ wxToolBarTool::wxToolBarTool(int theIndex, } m_shortHelpString = helpS1; m_longHelpString = helpS2; + m_control = (wxControl*) NULL; } -wxToolBarTool::wxToolBarTool(int index, wxControl *control) +wxToolBarTool::wxToolBarTool(wxControl *control) { m_toolStyle = wxTOOL_STYLE_CONTROL; m_control = control; + m_index = control->GetId(); } wxToolBarTool::~wxToolBarTool()