]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't override msw.remap system option value in wxToolbook.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Nov 2009 02:29:08 +0000 (02:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 28 Nov 2009 02:29:08 +0000 (02:29 +0000)
Introducing a system option for all toolbars and then ignoring it inside wx
itself is ridiculous and just goes to prove that this option itself was a
mistake. But as we have it, we should respect whatever value it's set to
(which should hopefully be 0 anyhow for most modern systems) instead of
overriding it forcefully making the mockery of the whole "option" concept.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/toolbkg.cpp

index 944147a970b7b0d956db7e6ffd8362ae7c95347b..20b36fb46240068549e4c1dbdccfbbba0d7d70ea 100644 (file)
@@ -272,10 +272,7 @@ void wxToolbook::Realize()
 
         GetToolBar()->SetToolBitmapSize(m_maxBitmapSize);
 
-        int remap = wxSystemOptions::GetOptionInt(wxT("msw.remap"));
-        wxSystemOptions::SetOption(wxT("msw.remap"), 0);
         GetToolBar()->Realize();
-        wxSystemOptions::SetOption(wxT("msw.remap"), remap);
     }
 
     if (m_selection == -1)