]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynarray.h
Fix bug with unloading wxPluginLibrary objects in "wrong" order.
[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                                                          \
       {                                                             \