]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/toolbar.cpp
build fix. Need the full declaration for CLASSINFO().
[wxWidgets.git] / src / univ / toolbar.cpp
index c995466a661ee7690afbe602cbdb5373a4b229b8..774c5d5a75047e000daa4e8a733a3f5927a94567 100644 (file)
@@ -652,7 +652,7 @@ bool wxStdToolbarInputHandler::HandleMouse(wxInputConsumer *consumer,
     wxToolBar *tbar = wxStaticCast(consumer->GetInputWindow(), wxToolBar);
     wxToolBarToolBase *tool = tbar->FindToolForPosition(event.GetX(), event.GetY());
 
-    if ( tool && !tool->IsEnabled() )
+    if ( !tool || !tool->IsEnabled() )
         return TRUE;
 
     return wxStdButtonInputHandler::HandleMouse(consumer, event);