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:
@@ -1238,7 +1238,9 @@ void wxAuiTabCtrl::OnMotion(wxMouseEvent& evt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxWindow* wnd = NULL;
|
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);
|
wxString tooltip(m_pages[GetIdxFromWindow(wnd)].tooltip);
|
||||||
|
|
||||||
@@ -1249,7 +1251,8 @@ void wxAuiTabCtrl::OnMotion(wxMouseEvent& evt)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
UnsetToolTip();
|
UnsetToolTip();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!evt.LeftIsDown() || m_clickPt == wxDefaultPosition)
|
if (!evt.LeftIsDown() || m_clickPt == wxDefaultPosition)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user