diff --git a/include/wx/toolbook.h b/include/wx/toolbook.h index 365fed48f0..b75ee036e9 100644 --- a/include/wx/toolbook.h +++ b/include/wx/toolbook.h @@ -115,9 +115,6 @@ protected: // whether the toolbar needs to be realized bool m_needsRealizing; - // maximum bitmap size - wxSize m_maxBitmapSize; - private: // common part of all constructors void Init(); diff --git a/src/generic/toolbkg.cpp b/src/generic/toolbkg.cpp index 09ec9274f3..4cf5ba0739 100644 --- a/src/generic/toolbkg.cpp +++ b/src/generic/toolbkg.cpp @@ -200,8 +200,6 @@ void wxToolbook::Realize() { m_needsRealizing = false; - GetToolBar()->SetToolBitmapSize(m_maxBitmapSize); - GetToolBar()->Realize(); } @@ -289,11 +287,7 @@ bool wxToolbook::InsertPage(size_t n, bitmap.CopyFromIcon(icon); #endif - m_maxBitmapSize.x = wxMax(bitmap.GetWidth(), m_maxBitmapSize.x); - m_maxBitmapSize.y = wxMax(bitmap.GetHeight(), m_maxBitmapSize.y); - int toolId = page->GetId(); - GetToolBar()->SetToolBitmapSize(m_maxBitmapSize); GetToolBar()->InsertTool(n, toolId, text, bitmap, wxNullBitmap, wxITEM_RADIO); // fix current selection