X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/427ff66291af2d8dd34ff5ee68c81436997144a1..550e6c014ca85140969ab48c22c684755b4e9dce:/src/mac/macnotfy.cpp diff --git a/src/mac/macnotfy.cpp b/src/mac/macnotfy.cpp index 36d7fb3e61..65e4377598 100644 --- a/src/mac/macnotfy.cpp +++ b/src/mac/macnotfy.cpp @@ -112,11 +112,11 @@ void wxMacRemoveAllNotifiersForData( wxMacNotifierTableRef table , void* data ) while ( e->top != index ) { - if ( index == kMaxEvents ) - index = 0 ; if ( e->data[index] == data ) e->data[index] = NULL ; index++ ; + if ( index == kMaxEvents ) + index = 0 ; } }