Remove unnecessary calls to wxToolBar::SetToolBitmapSize()

This is unnecessary, just as an existing comment said, so don't bother
doing it.
This commit is contained in:
Vadim Zeitlin
2021-09-15 18:24:29 +01:00
parent fe615bdeea
commit d6f1f79cef

View File

@@ -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", toolBar->AddTool(wxID_NEW, "New",
toolBarBitmaps[Tool_new], wxNullBitmap, wxITEM_DROPDOWN, toolBarBitmaps[Tool_new], wxNullBitmap, wxITEM_DROPDOWN,
"New file", "This is help for new file tool"); "New file", "This is help for new file tool");