]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
1. undid my wrong fix to wxWindowBase::Centre
[wxWidgets.git] / src / common / tbarbase.cpp
index 0ddb230f4b86d4a19db80bf2ca733c9349f8b4bd..98eed8bbd5e43d0d81556219e0f62d4571eb4435 100644 (file)
@@ -96,6 +96,7 @@ wxToolBarTool::wxToolBarTool(wxControl *control)
 {
     m_toolStyle = wxTOOL_STYLE_CONTROL;
     m_control = control;
+    m_index = control->GetId();
 }
 
 wxToolBarTool::~wxToolBarTool()