X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c41a418df66b66711eba536526a3085f690782e..923d3156955a0d040f0db70151a55edf8cb4f6f5:/src/common/tbarbase.cpp diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index 793ef3787b..6f7793b419 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -220,6 +220,7 @@ wxToolBarTool *wxToolBarBase::AddTool(int index, const wxBitmap& bitmap, const w void wxToolBarBase::AddSeparator () { wxToolBarTool *tool = new wxToolBarTool; + tool->m_index = -1; tool->m_toolStyle = wxTOOL_STYLE_SEPARATOR; m_tools.Append(-1, tool); }