]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/radiobox.cpp
Use widget->allocation instead of querying the
[wxWidgets.git] / src / gtk / radiobox.cpp
index d00e6cfc765b120fa3a90524e16c42d0e573f8e6..a16eaf5679f47ede7434e7da16a6d541d23dd323 100644 (file)
@@ -688,7 +688,7 @@ int wxRadioBox::GetItemFromPoint(const wxPoint& point) const
     for ( wxRadioBoxButtonsInfoList::compatibility_iterator
             node = m_buttonsInfo.GetFirst(); node; node = node->GetNext(), n++ )
     {
-        if ( m_buttonsInfo[n]->rect.Inside(pt) )
+        if ( m_buttonsInfo[n]->rect.Contains(pt) )
             return n;
     }