X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9804d5404a9607cda3d08ec8225f52f78b78bc72..ce1f7f02c4a71b0fe56ef6647f52d16b1e3fe6e0:/src/generic/listbkg.cpp?ds=sidebyside diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index 67059a7197..b21319248a 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -173,7 +173,7 @@ int wxListbook::HitTest(const wxPoint& pt, long *flags) const const wxPoint listPt = list->ScreenToClient(ClientToScreen(pt)); // is the point inside list control? - if ( wxRect(list->GetSize()).Inside(listPt) ) + if ( wxRect(list->GetSize()).Contains(listPt) ) { int flagsList; pagePos = list->HitTest(listPt, flagsList); @@ -193,7 +193,7 @@ int wxListbook::HitTest(const wxPoint& pt, long *flags) const } else // not over list control at all { - if ( flags && GetPageRect().Inside(pt) ) + if ( flags && GetPageRect().Contains(pt) ) *flags |= wxBK_HITTEST_ONPAGE; }