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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user