X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f30729a03fc1a1de3a71c3b1af2192df45e7318..1cd9779fce63b081d875de7a901c8eb6120d0b8a:/src/generic/treebkg.cpp 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; }