projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d1214c
)
remove always-true comparison of unsigned value >= 0
author
Paul Cornett
<paulcor@bullseye.com>
Thu, 4 Oct 2012 15:58:11 +0000
(15:58 +0000)
committer
Paul Cornett
<paulcor@bullseye.com>
Thu, 4 Oct 2012 15:58:11 +0000
(15:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72612
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/ribbon/buttonbar.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/ribbon/buttonbar.cpp
b/src/ribbon/buttonbar.cpp
index d8acaa6e1146ee28781dfe0517b33a53a94098fa..7e25278de3b17b4457bd16be8212c6b70eb020e4 100644
(file)
--- 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);
}