X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f30729a03fc1a1de3a71c3b1af2192df45e7318..f09df8b2ea9a005117997c020ab222736805c5d4:/src/generic/treebkg.cpp?ds=sidebyside diff --git a/src/generic/treebkg.cpp b/src/generic/treebkg.cpp index 066e30edff..2bcb1da8dd 100644 --- a/src/generic/treebkg.cpp +++ b/src/generic/treebkg.cpp @@ -743,7 +743,7 @@ int wxTreebook::HitTest(wxPoint const & pt, long * flags) const const wxPoint treePt = tree->ScreenToClient(ClientToScreen(pt)); // is it over the tree? - if ( wxRect(tree->GetSize()).Inside(treePt) ) + if ( wxRect(tree->GetSize()).Contains(treePt) ) { int flagsTree; wxTreeItemId id = tree->HitTest(treePt, flagsTree); @@ -769,7 +769,7 @@ int wxTreebook::HitTest(wxPoint const & pt, long * flags) const } else // not over the tree { - if ( flags && GetPageRect().Inside( pt ) ) + if ( flags && GetPageRect().Contains( pt ) ) *flags |= wxBK_HITTEST_ONPAGE; }