Don't override msw.remap system option value in wxToolbook.
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
This commit is contained in:
@@ -272,10 +272,7 @@ void wxToolbook::Realize()
|
|||||||
|
|
||||||
GetToolBar()->SetToolBitmapSize(m_maxBitmapSize);
|
GetToolBar()->SetToolBitmapSize(m_maxBitmapSize);
|
||||||
|
|
||||||
int remap = wxSystemOptions::GetOptionInt(wxT("msw.remap"));
|
|
||||||
wxSystemOptions::SetOption(wxT("msw.remap"), 0);
|
|
||||||
GetToolBar()->Realize();
|
GetToolBar()->Realize();
|
||||||
wxSystemOptions::SetOption(wxT("msw.remap"), remap);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_selection == -1)
|
if (m_selection == -1)
|
||||||
|
Reference in New Issue
Block a user