X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0287ae5c754c6d6f573f1980954f278c6120bff2..6968a3b87cee46f5c5af9b46e1ef97f17133cef7:/include/wx/dynarray.h?ds=sidebyside 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 \ { \