]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
mouse handling fixed, skipping if we have no native control handling
[wxWidgets.git] / src / generic / treectlg.cpp
index 609aa9d5a43d613ea87642b2058b2d7d24da855f..ee996625f141b2a4f188695cf1be4ad76e6ed3e3 100644 (file)
@@ -2904,7 +2904,9 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
     int flags = 0;
     wxGenericTreeItem *thisItem = m_anchor->HitTest(pt, this, flags, 0);
     wxGenericTreeItem *underMouse = thisItem;
+#if wxUSE_TOOLTIPS
     bool underMouseChanged = (underMouse != m_underMouse) ;
+#endif // wxUSE_TOOLTIPS
 
     if ((underMouse) &&
         (flags & wxTREE_HITTEST_ONITEMBUTTON) &&