]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gbsizer.cpp
include wx/utils.h in PCH-less build to ensure that we get the correct (DLL-exported...
[wxWidgets.git] / src / common / gbsizer.cpp
index a3ad1e92a8f839aaa8b8954c4fdfb55620e2f79e..8188383c6ac72f167eba1e5b9f8f2901ece8d03c 100644 (file)
@@ -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();
     }