X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed4b0fdca60e017afe72c55940799ce0fed925f0..bc63f2c969b303cf5f5e7f9adc9cd7c565f1d9b0:/src/generic/buttonbar.cpp diff --git a/src/generic/buttonbar.cpp b/src/generic/buttonbar.cpp index 98b1b160a7..343e7e585a 100644 --- a/src/generic/buttonbar.cpp +++ b/src/generic/buttonbar.cpp @@ -36,11 +36,10 @@ #include "wx/log.h" #include "wx/frame.h" #include "wx/dcclient.h" + #include "wx/settings.h" + #include "wx/image.h" #endif -#include "wx/image.h" -#include "wx/settings.h" - // ---------------------------------------------------------------------------- // wxButtonToolBarTool: our implementation of wxToolBarToolBase // ---------------------------------------------------------------------------- @@ -352,7 +351,7 @@ bool wxButtonToolBar::Realize() m_needsLayout = true; DoLayout(); - SetBestSize(wxSize(m_maxWidth, m_maxHeight)); + SetInitialSize(wxSize(m_maxWidth, m_maxHeight)); return true; }