]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynarray.cpp
Check accelerators before sending EVT_CHAR
[wxWidgets.git] / src / common / dynarray.cpp
index 738e9813a39a140945104945b8d424fd221c7872..4f4915a25bb18965353d51ffac2f19974bb28b76 100644 (file)
@@ -99,8 +99,8 @@ int name::Index(T lItem, CMPFUNC fnCompare) const                           \
 {                                                                           \
     Predicate p((SCMPFUNC)fnCompare);                                       \
     const_iterator it = std::lower_bound(begin(), end(), lItem, p);         \
-    return (it != end() &&                                                  \
-            p(lItem, *it)) ? (int)(it - begin()) : wxNOT_FOUND;             \
+    return (it != end() && !p(lItem, *it)) ?                                \
+                             (int)(it - begin()) : wxNOT_FOUND;             \
 }                                                                           \
                                                                             \
 void name::Shrink()                                                         \