]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
Undid last commit and restored bool argument to wxFrame::DoGiveHelp() as
[wxWidgets.git] / src / common / tbarbase.cpp
index 8a63d697a084c20c482960b308e5c3327d00c4a7..1e427b825fdd8ccf2f63001adfc02c3522c5f235 100644 (file)
@@ -628,7 +628,7 @@ void wxToolBarBase::OnMouseEnter(int id)
     event.SetInt(id);
 
     wxFrame *frame = wxDynamicCast(GetParent(), wxFrame);
-    if( frame )
+    if ( frame )
     {
         wxString help;
         if ( id != wxID_ANY )
@@ -638,9 +638,9 @@ void wxToolBarBase::OnMouseEnter(int id)
                help = tool->GetLongHelp();
         }
 
-        // do it even if help string is empty to avoid showing the help for the
-        // previously selected tool when another one is selected
-        frame->DoGiveHelp(help);
+        // call DoGiveHelp() even if help string is empty to avoid showing the
+        // help for the previously selected tool when another one is selected
+        frame->DoGiveHelp(help, id != wxID_ANY);
     }
 
     (void)GetEventHandler()->ProcessEvent(event);