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

src/osx/scrolbar_osx.cpp

index 22c25b2f1912485afaace7e4098f4e7e6325c8b1..3a992ca618f18e9b4337060d43f32ba2a621498f 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "wx/osx/private.h"
 
+#if wxUSE_SCROLLBAR
+
 IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
 
 BEGIN_EVENT_TABLE(wxScrollBar, wxControl)
@@ -174,4 +176,6 @@ void wxScrollBar::TriggerScrollEvent( wxEventType scrollEvent )
         window->MacOnScroll( event );
     else
         HandleWindowEvent( event );
-}
\ No newline at end of file
+}
+
+#endif
\ No newline at end of file