]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
Unused parameter warning fix.
[wxWidgets.git] / src / common / tbarbase.cpp
index d2243fedf2cd3b1f25719b798484aaa997b5dff1..2496b8a9749f95617a530d51c375fd42025ffa78 100644 (file)
@@ -41,7 +41,7 @@
 #include "wx/toolbar.h"
 
 // ----------------------------------------------------------------------------
-// wxWindows macros
+// wxWidgets macros
 // ----------------------------------------------------------------------------
 
 BEGIN_EVENT_TABLE(wxToolBarBase, wxControl)
@@ -141,6 +141,7 @@ wxToolBarToolBase *wxToolBarBase::DoAddTool(int id,
                                             wxCoord WXUNUSED(xPos),
                                             wxCoord WXUNUSED(yPos))
 {
+    InvalidateBestSize();
     return InsertTool(GetToolsCount(), id, label, bitmap, bmpDisabled,
                       kind, shortHelp, longHelp, clientData);
 }