]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynarray.h
avoid creating and immediately destroying a wxGraphicsContext when creating a wxDC...
[wxWidgets.git] / include / wx / dynarray.h
index 56abaae013f4d8fbdee8f0f99684b219f96ffc09..d50c7c19e874699b6a887f8eb4ca7ae10c1f8ed8 100644 (file)
@@ -151,7 +151,7 @@ public:                                                             \
                                        e = rend();                  \
           for ( const_reverse_iterator i = b; i != e; ++i )         \
               if ( *i == item )                                     \
-                  return (int)(i - b);                              \
+                  return (int)(e - i - 1);                          \
       }                                                             \
       else                                                          \
       {                                                             \