]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/macnotfy.cpp
compilation fix for Mac and reformatted the code
[wxWidgets.git] / src / mac / macnotfy.cpp
index 36d7fb3e614bfa2c7c8d62471120b8ae31476e8d..65e43775982084403b50b5f54d485ffd425345e7 100644 (file)
@@ -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 ;
     }
 }