X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0287ae5c754c6d6f573f1980954f278c6120bff2..2a45803fc3877afd0ae3ce356dfe216505165882:/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 \ { \