]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
test for timegm() added
[wxWidgets.git] / src / common / tbarbase.cpp
index 0ddb230f4b86d4a19db80bf2ca733c9349f8b4bd..615d76c560c73209cf5d2637db44c8ed81c987bf 100644 (file)
@@ -90,12 +90,14 @@ wxToolBarTool::wxToolBarTool(int theIndex,
   }
   m_shortHelpString = helpS1;
   m_longHelpString = helpS2;
+  m_control = (wxControl*) NULL;
 }
 
 wxToolBarTool::wxToolBarTool(wxControl *control)
 {
     m_toolStyle = wxTOOL_STYLE_CONTROL;
     m_control = control;
+    m_index = control->GetId();
 }
 
 wxToolBarTool::~wxToolBarTool()