X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9804d5404a9607cda3d08ec8225f52f78b78bc72..f09df8b2ea9a005117997c020ab222736805c5d4:/src/generic/toolbkg.cpp diff --git a/src/generic/toolbkg.cpp b/src/generic/toolbkg.cpp index 0ae9b0b607..f85a27462b 100644 --- a/src/generic/toolbkg.cpp +++ b/src/generic/toolbkg.cpp @@ -321,7 +321,7 @@ int wxToolbook::HitTest(const wxPoint& pt, long *flags) const const wxPoint tbarPt = tbar->ScreenToClient(ClientToScreen(pt)); // is the point over the toolbar? - if ( wxRect(tbar->GetSize()).Inside(tbarPt) ) + if ( wxRect(tbar->GetSize()).Contains(tbarPt) ) { const wxToolBarToolBase * const tool = tbar->FindToolForPosition(tbarPt.x, tbarPt.y); @@ -335,7 +335,7 @@ int wxToolbook::HitTest(const wxPoint& pt, long *flags) const } else // not over the toolbar { - if ( flags && GetPageRect().Inside(pt) ) + if ( flags && GetPageRect().Contains(pt) ) *flags |= wxBK_HITTEST_ONPAGE; }