]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dlgcmn.cpp
Take basic style into account when applying style sheet
[wxWidgets.git] / src / common / dlgcmn.cpp
index 31c5aa60ec4ad4111ca0c76e45466646ee4c2fd0..1770605db92708c8ed17a6c7993e4bac9bf0e613 100644 (file)
@@ -42,6 +42,7 @@
 #include "wx/module.h"
 #include "wx/private/stattext.h"
 #include "wx/bookctrl.h"
+#include "wx/scrolwin.h"
 
 #if wxUSE_DISPLAY
 #include "wx/display.h"
@@ -766,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;