]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't assume that msw.remap was 1, instead change it back to what it
authorRobin Dunn <robin@alldunn.com>
Fri, 3 Feb 2006 23:05:15 +0000 (23:05 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 3 Feb 2006 23:05:15 +0000 (23:05 +0000)
really was before.

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

src/generic/toolbkg.cpp

index 9de9582f5e852e8f8666635a8731a7c252b58b5d..cd205b2dd22735840748dbf145383d602b6866da 100644 (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;