Reset m_needsRealizing flag before calling wxToolBar::Realize() as doing this
can result in another call to wxToolbook::OnSize() itself.
Closes #11942.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62733
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
if (m_needsRealizing)
{
+ m_needsRealizing = false;
+
GetToolBar()->SetToolBitmapSize(m_maxBitmapSize);
int remap = wxSystemOptions::GetOptionInt(wxT("msw.remap"));
wxSystemOptions::SetOption(wxT("msw.remap"), remap);
}
- m_needsRealizing = false;
-
if (m_selection == -1)
m_selection = 0;