]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/toolbar.cpp
applied patch fixing problems with X server crash when using wxGLCanvas with nVidia...
[wxWidgets.git] / src / mac / classic / toolbar.cpp
index 1b4b9733d0f172aab6cd7b47bbd3fd37ec9c35a8..15ecb363a9b7ca7ecfe0f4e6c6a514df73a9a081 100644 (file)
@@ -401,7 +401,7 @@ void wxToolBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart ,
         wxToolBarTool* tool = (wxToolBarTool*) node->GetData() ; 
         if ( tool->IsButton() )
         {
-           if( tool->GetControlHandle() == control ) 
+           if( (WXWidget) tool->GetControlHandle() == control ) 
            {
                 if ( tool->CanBeToggled() )
                 {
@@ -611,7 +611,7 @@ void  wxToolBar::OnMouse( wxMouseEvent &event )
                     wxTheApp->s_lastMouseDown = 0 ;
                     if ( control && controlpart != kControlNoPart ) // otherwise we will get the event twice
                     {
-                        MacHandleControlClick( control , controlpart , false /* not down anymore */ ) ;
+                        MacHandleControlClick( (WXWidget) control , controlpart , false /* not down anymore */ ) ;
                     }
                 }
             }