]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
test for timegm() added
[wxWidgets.git] / src / common / tbarbase.cpp
index a11a22d3a21f648662be217ce43d6b2276068e45..615d76c560c73209cf5d2637db44c8ed81c987bf 100644 (file)
@@ -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()