X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..c43507b0fed02bf204b524b953ce7c9794ed250f:/src/common/gbsizer.cpp?ds=sidebyside diff --git a/src/common/gbsizer.cpp b/src/common/gbsizer.cpp index a3ad1e92a8..8188383c6a 100644 --- a/src/common/gbsizer.cpp +++ b/src/common/gbsizer.cpp @@ -409,7 +409,7 @@ wxGBSizerItem* wxGridBagSizer::FindItemAtPoint(const wxPoint& pt) wxGBSizerItem* item = (wxGBSizerItem*)node->GetData(); wxRect rect(item->GetPosition(), item->GetSize()); rect.Inflate(m_hgap, m_vgap); - if ( rect.Inside(pt) ) + if ( rect.Contains(pt) ) return item; node = node->GetNext(); }