compilation fix for wxUSE_BOOKCTRL=0

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-01-31 22:00:33 +00:00
parent 3bc9aac036
commit f8b3f03601

View File

@@ -529,6 +529,7 @@ bool wxStandardDialogLayoutAdapter::DoLayoutAdaptation(wxDialog* dialog)
{ {
if (dialog->GetSizer()) if (dialog->GetSizer())
{ {
#if wxUSE_BOOKCTRL
wxBookCtrlBase* bookContentWindow = wxDynamicCast(dialog->GetContentWindow(), wxBookCtrlBase); wxBookCtrlBase* bookContentWindow = wxDynamicCast(dialog->GetContentWindow(), wxBookCtrlBase);
if (bookContentWindow) if (bookContentWindow)
@@ -564,6 +565,7 @@ bool wxStandardDialogLayoutAdapter::DoLayoutAdaptation(wxDialog* dialog)
FitWithScrolling(dialog, windows); FitWithScrolling(dialog, windows);
} }
else else
#endif // wxUSE_BOOKCTRL
{ {
// If we have an arbitrary dialog, create a scrolling area for the main content, and a button sizer // If we have an arbitrary dialog, create a scrolling area for the main content, and a button sizer
// for the main buttons. // for the main buttons.