X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/209dc298e23ed61ee17dd063bf7cd397209f473c..b61c03cad3e5e0e4766e12dd1e26fac5fe72ff3e:/src/ribbon/buttonbar.cpp diff --git a/src/ribbon/buttonbar.cpp b/src/ribbon/buttonbar.cpp index d8acaa6e11..7e25278de3 100644 --- a/src/ribbon/buttonbar.cpp +++ b/src/ribbon/buttonbar.cpp @@ -1193,7 +1193,7 @@ wxRibbonButtonBarButtonBase *wxRibbonButtonBar::GetHoveredItem() const wxRibbonButtonBarButtonBase *wxRibbonButtonBar::GetItem(size_t n) const { - wxCHECK_MSG(n >= 0 && n < m_buttons.GetCount(), NULL, "wxRibbonButtonBar item's index is out of bound"); + wxCHECK_MSG(n < m_buttons.GetCount(), NULL, "wxRibbonButtonBar item's index is out of bound"); return m_buttons.Item(n); }