]> git.saurik.com Git - wxWidgets.git/commitdiff
moving rollover check, was causing hangs upon termination in case ->top was 0
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 26 Apr 2003 20:18:20 +0000 (20:18 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 26 Apr 2003 20:18:20 +0000 (20:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/macnotfy.cpp
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 ;
     }
 }
 
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 ;
     }
 }