]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
Rework the wxCusor ctor taking wx stock number to provide as many cursors as
[wxWidgets.git] / src / common / event.cpp
index d1a93adc8ac26bff545cf925b019ac89ce0a0ead..d0c22a72d1f226f6a5dc890a5bc0a4c574ea064e 100644 (file)
@@ -1252,8 +1252,10 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event)
     // Try going down the event handler chain
     if ( GetNextHandler() )
     {
-        if ( GetNextHandler()->ProcessEvent(event) )
-            return true;
+        // notice that we shouldn't let the parent have the event even if the
+        // next handler does not process it because it will have already passed
+        // it to the parent in this case
+        return GetNextHandler()->ProcessEvent(event);
     }
 
     // Finally propagate the event upwards the window chain and/or to the