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