From: Václav Slavík Date: Thu, 31 Jan 2008 22:00:33 +0000 (+0000) Subject: compilation fix for wxUSE_BOOKCTRL=0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f8b3f03601046ff3ab87eb4e9a68d569250511e0?ds=inline compilation fix for wxUSE_BOOKCTRL=0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 1770605db9..e386099c3a 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -529,6 +529,7 @@ bool wxStandardDialogLayoutAdapter::DoLayoutAdaptation(wxDialog* dialog) { if (dialog->GetSizer()) { +#if wxUSE_BOOKCTRL wxBookCtrlBase* bookContentWindow = wxDynamicCast(dialog->GetContentWindow(), wxBookCtrlBase); if (bookContentWindow) @@ -564,6 +565,7 @@ bool wxStandardDialogLayoutAdapter::DoLayoutAdaptation(wxDialog* dialog) FitWithScrolling(dialog, windows); } else +#endif // wxUSE_BOOKCTRL { // If we have an arbitrary dialog, create a scrolling area for the main content, and a button sizer // for the main buttons.