]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
Linux/AXP compilation fixed.
[wxWidgets.git] / src / common / tbarbase.cpp
index a11a22d3a21f648662be217ce43d6b2276068e45..98eed8bbd5e43d0d81556219e0f62d4571eb4435 100644 (file)
@@ -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()