Allow for compilation with wxUSE_TOOLTIPS=0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8b465a4973
commit
d4df01f140
@ -1238,7 +1238,9 @@ void wxAuiTabCtrl::OnMotion(wxMouseEvent& evt)
|
||||
}
|
||||
|
||||
wxWindow* wnd = NULL;
|
||||
if (evt.Moving() && TabHitTest(evt.m_x, evt.m_y, &wnd))
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
if (evt.Moving() && TabHitTest(evt.m_x, evt.m_y, &wnd))
|
||||
{
|
||||
wxString tooltip(m_pages[GetIdxFromWindow(wnd)].tooltip);
|
||||
|
||||
@ -1249,7 +1251,8 @@ void wxAuiTabCtrl::OnMotion(wxMouseEvent& evt)
|
||||
}
|
||||
else
|
||||
UnsetToolTip();
|
||||
|
||||
#endif
|
||||
|
||||
if (!evt.LeftIsDown() || m_clickPt == wxDefaultPosition)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user