From: Julian Smart Date: Mon, 28 Feb 2005 14:41:37 +0000 (+0000) Subject: Removed call to obsolete (and presumably redundant) SetPageSize X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fa51336154b895412a49fcc9e943837859464b6f Removed call to obsolete (and presumably redundant) SetPageSize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/wizard/wizard.cpp b/samples/wizard/wizard.cpp index 5145957729..97bd411243 100644 --- a/samples/wizard/wizard.cpp +++ b/samples/wizard/wizard.cpp @@ -385,7 +385,6 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event)) _T("The next pages will present you\nwith more useless controls."), wxPoint(5,5) ); - wxSize size = text->GetBestSize(); // ... or a derived class wxRadioboxPage *page3 = new wxRadioboxPage(wizard); @@ -401,7 +400,7 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event)) page1->SetNext(page2); page3->SetPrev(page2); - wizard->SetPageSize(size); + // allow the wizard to size itself around the pages wizard->GetPageAreaSizer()->Add(page1); if ( wizard->RunWizard(page1) )