Remove unnecessary SetAutoLayout(true) calls
There is no need to call SetAutoLayout() explicitly after (or just before) calling SetSizer() with a valid sizer pointer, as SetSizer() already enables automatic layout, so just drop the useless calls. No real changes.
This commit is contained in:
@@ -354,7 +354,6 @@ void wxGenericFontDialog::CreateWidgets()
|
||||
|
||||
wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
|
||||
this->SetSizer(itemBoxSizer2);
|
||||
this->SetAutoLayout(true);
|
||||
|
||||
wxBoxSizer* itemBoxSizer3 = new wxBoxSizer(wxVERTICAL);
|
||||
itemBoxSizer2->Add(itemBoxSizer3, 1, wxGROW|wxALL, 5);
|
||||
|
||||
Reference in New Issue
Block a user