X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c7b2e4941fdf9842e17d2d375474e0846d0a1abe..38f833b10c071603eb8d7739ab31b1c07c4576f1:/src/gtk/radiobox.cpp diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index d00e6cfc76..a16eaf5679 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -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; }