]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
SetBackgroundStyle(wxBG_STYLE_CUSTOM) can now be used to optimize
[wxWidgets.git] / src / common / tbarbase.cpp
index a2045d0f0cb83100c94b0eb4df98921deeb40bf9..2496b8a9749f95617a530d51c375fd42025ffa78 100644 (file)
@@ -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);
 }