X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc8bc5aa9cd14c158de637acb9e5ed8beb066d57..cc59d9396317abec50b184cdfc8fd0bab0058d82:/src/generic/propdlg.cpp diff --git a/src/generic/propdlg.cpp b/src/generic/propdlg.cpp index d82f8b889c..aa4589b2b9 100644 --- a/src/generic/propdlg.cpp +++ b/src/generic/propdlg.cpp @@ -97,6 +97,8 @@ void wxPropertySheetDialog::LayoutDialog(int centreFlags) GetSizer()->SetSizeHints(this); if (centreFlags) Centre(centreFlags); +#else + wxUnusedVar(centreFlags); #endif #if defined(__SMARTPHONE__) if (m_bookCtrl) @@ -163,7 +165,7 @@ wxBookCtrlBase* wxPropertySheetDialog::CreateBookCtrl() bookCtrl = new wxBookCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style ); if (GetSheetStyle() & wxPROPSHEET_SHRINKTOFIT) - bookCtrl->SetShrinkMode(true); + bookCtrl->SetFitToCurrentPage(true); return bookCtrl; }