From d6f1f79cef5bdc01134ce216491668014da0b8ab Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 15 Sep 2021 18:24:29 +0100 Subject: [PATCH] Remove unnecessary calls to wxToolBar::SetToolBitmapSize() This is unnecessary, just as an existing comment said, so don't bother doing it. --- samples/toolbar/toolbar.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index 181c843546..6531b498dc 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -401,10 +401,6 @@ void MyFrame::PopulateToolbar(wxToolBarBase* toolBar) } } - // this call is actually unnecessary as the toolbar will adjust its tools - // size to fit the biggest icon used anyhow but it doesn't hurt neither - toolBar->SetToolBitmapSize(wxSize(w, h)); - toolBar->AddTool(wxID_NEW, "New", toolBarBitmaps[Tool_new], wxNullBitmap, wxITEM_DROPDOWN, "New file", "This is help for new file tool");