Applied patch [ 1378183 ] Mac: wxNotebook::HitTest off by one

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-01-19 11:03:56 +00:00
parent e90411c2c1
commit eb5d9594db

View File

@@ -353,7 +353,7 @@ int wxNotebook::HitTest(const wxPoint& pt, long * flags) const
} }
if ( outPart >= 1 && outPart <= countPages ) if ( outPart >= 1 && outPart <= countPages )
resultV = outPart ; resultV = outPart - 1 ;
#endif // TARGET_API_MAC_OSX #endif // TARGET_API_MAC_OSX
if (flags != NULL) if (flags != NULL)
@@ -361,7 +361,7 @@ int wxNotebook::HitTest(const wxPoint& pt, long * flags) const
*flags = 0; *flags = 0;
// we cannot differentiate better // we cannot differentiate better
if (resultV >= 1) if (resultV >= 0)
*flags |= wxNB_HITTEST_ONLABEL; *flags |= wxNB_HITTEST_ONLABEL;
else else
*flags |= wxNB_HITTEST_NOWHERE; *flags |= wxNB_HITTEST_NOWHERE;