X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..0231d18f1aac3a64066f0b1dd5b1c979210528ea:/src/cocoa/notebook.mm?ds=sidebyside diff --git a/src/cocoa/notebook.mm b/src/cocoa/notebook.mm index 8291868fab..1b1fd296fd 100644 --- a/src/cocoa/notebook.mm +++ b/src/cocoa/notebook.mm @@ -301,7 +301,7 @@ int wxNotebook::GetSelection() const { NSTabViewItem *selectedItem = [GetNSTabView() selectedTabViewItem]; if(!selectedItem) - return -1; + return wxNOT_FOUND; return [GetNSTabView() indexOfTabViewItem:selectedItem]; }