]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
minValue and maxValue are interpreted correctly in SetRange() (were inversed)
[wxWidgets.git] / src / msw / tbar95.cpp
index 5e8e5dab765008b871d71e0d8b066192a126f876..dd58502449ffd5a69bfab6fc8b960796f8da3ab9 100644 (file)
@@ -488,7 +488,7 @@ wxToolBarTool *wxToolBar95::AddTool(int index, const wxBitmap& bitmap, const wxB
   else
     tool->m_y = m_yMargin;
 
-  tool->SetSize(GetDefaultButtonWidth(), GetDefaultButtonHeight());
+  tool->SetSize(GetToolSize().x, GetToolSize().y);
 
   m_tools.Append((long)index, tool);
   return tool;