X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60f8c22b2502f825e054cb4cacd7c119a5aca8dd..a0f4d36895556e3054e2256cb5f1787cc9fcf75c:/samples/artprov/artbrows.cpp?ds=sidebyside diff --git a/samples/artprov/artbrows.cpp b/samples/artprov/artbrows.cpp index f4b8eb666f..599c36c9c3 100644 --- a/samples/artprov/artbrows.cpp +++ b/samples/artprov/artbrows.cpp @@ -162,8 +162,7 @@ wxArtBrowserDialog::wxArtBrowserDialog(wxWindow *parent) ok->SetDefault(); sizer->Add(ok, 0, wxALIGN_RIGHT | wxALL, 10); - SetSizer(sizer); - sizer->Fit(this); + SetSizerAndFit(sizer); choice->SetSelection(6/*wxART_MESSAGE_BOX*/); SetArtClient(wxART_MESSAGE_BOX);