]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/notebook.mm
No real changes, just make wxWindow::CanScroll() virtual.
[wxWidgets.git] / src / osx / cocoa / notebook.mm
index 973fcf5adeba289bc46e8d1dbb9d57581ebd3297..d71ca4047c76d2dbf96d44435262701f29cf1c00 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Stefan Csomor
 // Modified by:
 // Created:     1998-01-01
-// RCS-ID:      $Id$
 // Copyright:   (c) Stefan Csomor
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -272,10 +271,12 @@ public:
         NSTabViewItem* hitItem = [slf tabViewItemAtPoint:nspt];
         
         if (!hitItem) {
-            *flags = wxBK_HITTEST_NOWHERE;
+            if ( flags )
+                *flags = wxBK_HITTEST_NOWHERE;
         } else {
             retval = [slf indexOfTabViewItem:hitItem];
-            *flags = wxBK_HITTEST_ONLABEL;
+            if ( flags )
+                *flags = wxBK_HITTEST_ONLABEL;
         }
         
         return retval;