]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/macnotfy.cpp
redraw forced for size changes (layout for measuring is simpler than word-wrapping...
[wxWidgets.git] / src / mac / macnotfy.cpp
index 36d7fb3e614bfa2c7c8d62471120b8ae31476e8d..690f83b214d3199dc69c3a01961261251d0bd7ca 100644 (file)
@@ -26,9 +26,9 @@ struct wxMacNotificationEvents
 } ;
 
 typedef struct wxMacNotificationEvents wxMacNotificationEvents ;
-wxMacNotificationEvents gMacNotificationEvents ;
+static wxMacNotificationEvents gMacNotificationEvents ;
 
-ProcessSerialNumber gAppProcess ;
+static ProcessSerialNumber gAppProcess ;
 
 void wxMacWakeUp()
 {
@@ -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 ;
     }
 }