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 (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);
{
wxString tooltip(m_pages[GetIdxFromWindow(wnd)].tooltip);
+#endif // wxUSE_TOOLTIPS
+
if (!evt.LeftIsDown() || m_clickPt == wxDefaultPosition)
return;
if (!evt.LeftIsDown() || m_clickPt == wxDefaultPosition)
return;