]> git.saurik.com Git - wxWidgets.git/commitdiff
use HandleWindowEvent() instead of ProcessEvent() to avoid crashes if the toolbar...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Jan 2009 16:27:21 +0000 (16:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Jan 2009 16:27:21 +0000 (16:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/tbarbase.cpp

index 1b7d9d00686b0e7ee54c18b1d5f8b6fbfd243f24..97fe65f63142988dcc7a132be923b9948e0f51d8 100644 (file)
@@ -625,7 +625,7 @@ bool wxToolBarBase::OnLeftClick(int id, bool toggleDown)
     event.SetExtraLong((long)toggleDown);
 
     // Send events to this toolbar instead (and thence up the window hierarchy)
-    GetEventHandler()->ProcessEvent(event);
+    HandleWindowEvent(event);
 
     return true;
 }