]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
avoiding nesting dcs on the same window concurrently
[wxWidgets.git] / src / common / event.cpp
index abca39a4b70081125000d6317c2c32d693c4b8ea..df764235acf79431caff1336578944f751a47a29 100644 (file)
@@ -1166,9 +1166,6 @@ void wxEvtHandler::ProcessPendingEvents()
 
         ProcessEvent(*event);
 
-        // eventhandling no longer in progess
-        m_eventHandlingInProgress = false;
-        
         delete event;
 
         wxENTER_CRIT_SECT( Lock() );
@@ -1178,6 +1175,9 @@ void wxEvtHandler::ProcessPendingEvents()
     }
 
     wxLEAVE_CRIT_SECT( Lock() );
+    
+    // eventhandling no longer in progess
+    m_eventHandlingInProgress = false;
 }
 
 /*