]> git.saurik.com Git - wxWidgets.git/commitdiff
Should set event object to relevant window when dispatching wxEVT_HELP
authorJulian Smart <julian@anthemion.co.uk>
Sun, 4 Jul 2004 11:13:59 +0000 (11:13 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 4 Jul 2004 11:13:59 +0000 (11:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cshelp.cpp

index a7da4a1cf5b9f07053cc1ffdfe2e7bdbd71619de..2ae62269b1fb6db4f7aa9163048a7747fe11456e 100644 (file)
@@ -232,7 +232,7 @@ bool wxContextHelp::DispatchEvent(wxWindow* win, const wxPoint& pt)
     while (subjectOfHelp && !eventProcessed)
     {
         wxHelpEvent helpEvent(wxEVT_HELP, subjectOfHelp->GetId(), pt) ;
-        helpEvent.SetEventObject(this);
+        helpEvent.SetEventObject(subjectOfHelp);
 
         eventProcessed = win->GetEventHandler()->ProcessEvent(helpEvent);