From 9504069ea6ac586e88628426be0d79241e3babaf Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 10 Jul 2009 17:38:36 +0000 Subject: [PATCH] guarding for scrollbar use git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wincmn.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 6243c4d73d..19a474f5be 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -474,7 +474,11 @@ static bool wxHasRealChildren(const wxWindowBase* win) node = node->GetNext() ) { wxWindow *win = node->GetData(); - if ( !win->IsTopLevel() && win->IsShown() && !win->IsKindOf(CLASSINFO(wxScrollBar))) + if ( !win->IsTopLevel() && win->IsShown() +#if wxUSE_SCROLLBAR + && !win->IsKindOf(CLASSINFO(wxScrollBar)) +#endif + ) realChildCount ++; } return (realChildCount > 0); -- 2.45.2