From be35fb7a15e8817ecd898ae9558e222ed63e572b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 5 Jun 2014 11:29:34 +0000 Subject: [PATCH] Compilation fix for wxMSW with wxUSE_TOOLTIPS==0. This is another fix after the changes of r76657, see #16265. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index a47eed6e91..eb461ecc8f 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -719,8 +719,10 @@ void wxTopLevelWindowMSW::DoShowWindow(int nShowCmd) m_iconized = nShowCmd == SW_MINIMIZE; } +#if wxUSE_TOOLTIPS // Don't leave a tooltip hanging around if TLW is hidden now. wxToolTip::UpdateVisibility(); +#endif // wxUSE_TOOLTIPS } void wxTopLevelWindowMSW::ShowWithoutActivating()