From: Robin Dunn Date: Fri, 3 Feb 2006 23:05:15 +0000 (+0000) Subject: Don't assume that msw.remap was 1, instead change it back to what it X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a16c6fdcbdcf470b00cddbf8635bb6904fa6e1bb Don't assume that msw.remap was 1, instead change it back to what it really was before. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/toolbkg.cpp b/src/generic/toolbkg.cpp index 9de9582f5e..cd205b2dd2 100644 --- a/src/generic/toolbkg.cpp +++ b/src/generic/toolbkg.cpp @@ -275,10 +275,11 @@ void wxToolbook::Realize() if (m_needsRealizing) { GetToolBar()->SetToolBitmapSize(m_maxBitmapSize); - + + int remap = wxSystemOptions::GetOptionInt(wxT("msw.remap")); wxSystemOptions::SetOption(wxT("msw.remap"), 0); GetToolBar()->Realize(); - wxSystemOptions::SetOption(wxT("msw.remap"), 1); + wxSystemOptions::SetOption(wxT("msw.remap"), remap); } m_needsRealizing = false;