diff --git a/src/common/dlgcmn.cpp b/src/common/dlgcmn.cpp index 973919ce4e..1770605db9 100644 --- a/src/common/dlgcmn.cpp +++ b/src/common/dlgcmn.cpp @@ -767,7 +767,7 @@ int wxStandardDialogLayoutAdapter::DoMustScroll(wxDialog* dialog, wxSize& window #if wxUSE_DISPLAY displaySize = wxDisplay(wxDisplay::GetFromWindow(dialog)).GetClientArea().GetSize(); #else - displaySize = wxGetClientDisplayRect(); + displaySize = wxGetClientDisplayRect().GetSize(); #endif int flags = 0;