]> git.saurik.com Git - wxWidgets.git/commitdiff
guarding for scrollbar use
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 10 Jul 2009 17:38:36 +0000 (17:38 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 10 Jul 2009 17:38:36 +0000 (17:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 6243c4d73d807d7d3d0223c43c28652b0f6a4145..19a474f5bef8476f79aee88bf9599baf23042ae4 100644 (file)
@@ -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);