X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/005659f0ffe0b280c3f800a5706b93fe9b78276e..7c60222510bc5e197b12f153c4bf05db66cb0f4a:/src/osx/cocoa/notebook.mm?ds=sidebyside diff --git a/src/osx/cocoa/notebook.mm b/src/osx/cocoa/notebook.mm index 973fcf5ade..86820dc0ea 100644 --- a/src/osx/cocoa/notebook.mm +++ b/src/osx/cocoa/notebook.mm @@ -272,10 +272,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;