X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0287ae5c754c6d6f573f1980954f278c6120bff2..0555b2a0a3c509687e7fc5aeb160f5171b7e6311:/include/wx/dynarray.h diff --git a/include/wx/dynarray.h b/include/wx/dynarray.h index 56abaae013..d50c7c19e8 100644 --- a/include/wx/dynarray.h +++ b/include/wx/dynarray.h @@ -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 \ { \