]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/notebook.cpp
don't append trailing tab to items which don't have stock accels
[wxWidgets.git] / src / univ / notebook.cpp
index 4fe59855e84baf2c955379e05b470ad49bff901d..237b4b73e25b1d687b823f0303faa0d1a5b50ba8 100644 (file)
@@ -588,7 +588,7 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const
         *flags = wxBK_HITTEST_NOWHERE;
 
     // first check that it is in this window at all
-    if ( !GetClientRect().Inside(pt) )
+    if ( !GetClientRect().Contains(pt) )
     {
         return -1;
     }
@@ -626,7 +626,7 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const
     {
         GetTabSize(n, &rectTabs.width, &rectTabs.height);
 
-        if ( rectTabs.Inside(pt) )
+        if ( rectTabs.Contains(pt) )
         {
             if ( flags )
             {