Move the declaration of a variable only used for tooltip setting inside "#if
wxUSE_TOOLTIPS" test.
Closes #14927.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73288
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
}
- wxWindow* wnd = NULL;
-
#if wxUSE_TOOLTIPS
- if (evt.Moving() && TabHitTest(evt.m_x, evt.m_y, &wnd))
+ wxWindow* wnd = NULL;
+ if (evt.Moving() && TabHitTest(evt.m_x, evt.m_y, &wnd))
{
wxString tooltip(m_pages[GetIdxFromWindow(wnd)].tooltip);
}
else
UnsetToolTip();
-#endif
-
+#endif // wxUSE_TOOLTIPS
+
if (!evt.LeftIsDown() || m_clickPt == wxDefaultPosition)
return;