X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c383dbac927bbcc728365b2f8894a5ce676b19b..742ff1e12fe845a79db772285dea63a227d867b7:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index a11a22d3a2..98eed8bbd5 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -92,10 +92,11 @@ wxToolBarTool::wxToolBarTool(int theIndex, m_longHelpString = helpS2; } -wxToolBarTool::wxToolBarTool(int index, wxControl *control) +wxToolBarTool::wxToolBarTool(wxControl *control) { m_toolStyle = wxTOOL_STYLE_CONTROL; m_control = control; + m_index = control->GetId(); } wxToolBarTool::~wxToolBarTool()