]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix removing event handler filters in wxEvtHandler.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 May 2012 20:36:08 +0000 (20:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 May 2012 20:36:08 +0000 (20:36 +0000)
Removal from the simply linked list of event filters wasn't done correctly as
the pointer to the previous node was never updated.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index 9896674c6103fd93b81e343ef65481f7c8bf58ab..59f6bc004a03e635d88a36949f45d6c2e388dcda 100644 (file)
@@ -1162,6 +1162,8 @@ wxEventFilter* wxEvtHandler::ms_filterList = NULL;
             // Skip the assert below.
             return;
         }
+
+        prev = f;
     }
 
     wxFAIL_MSG( "Filter not found" );