From f8b3f03601046ff3ab87eb4e9a68d569250511e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 31 Jan 2008 22:00:33 +0000 Subject: [PATCH] compilation fix for wxUSE_BOOKCTRL=0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dlgcmn.cpp | 2 ++ 1 file changed, 2 insertions(+) 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.