X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60f8c22b2502f825e054cb4cacd7c119a5aca8dd..41f6f17d01562aa09bdbcc6b02241b62f1d06b75:/samples/artprov/artbrows.cpp 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);