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:
@@ -275,10 +275,11 @@ void wxToolbook::Realize()
|
|||||||
if (m_needsRealizing)
|
if (m_needsRealizing)
|
||||||
{
|
{
|
||||||
GetToolBar()->SetToolBitmapSize(m_maxBitmapSize);
|
GetToolBar()->SetToolBitmapSize(m_maxBitmapSize);
|
||||||
|
|
||||||
|
int remap = wxSystemOptions::GetOptionInt(wxT("msw.remap"));
|
||||||
wxSystemOptions::SetOption(wxT("msw.remap"), 0);
|
wxSystemOptions::SetOption(wxT("msw.remap"), 0);
|
||||||
GetToolBar()->Realize();
|
GetToolBar()->Realize();
|
||||||
wxSystemOptions::SetOption(wxT("msw.remap"), 1);
|
wxSystemOptions::SetOption(wxT("msw.remap"), remap);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_needsRealizing = false;
|
m_needsRealizing = false;
|
||||||
|
Reference in New Issue
Block a user