]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cshelp.cpp
wxUSE_LOG fixes.
[wxWidgets.git] / src / common / cshelp.cpp
index 6267f85db0fc95d6c9d899b99c5a543a75da5209..2ae62269b1fb6db4f7aa9163048a7747fe11456e 100644 (file)
@@ -99,7 +99,7 @@ static void wxPushOrPopEventHandlers(wxContextHelp* help, wxWindow* win, bool pu
     else
         win->PopEventHandler(TRUE);
 
-    wxWindowList::Node* node = win->GetChildren().GetFirst();
+    wxWindowList::compatibility_iterator node = win->GetChildren().GetFirst();
     while (node)
     {
         wxWindow* child = node->GetData();
@@ -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);