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
This commit is contained in:
Robin Dunn
2006-02-03 23:05:15 +00:00
parent a7c12d28e6
commit a16c6fdcbd

View File

@@ -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;