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:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user