X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9542719478f03a60c9fa679917ddfed34fb2ce12..26af4dbd0a733de7df04c50acde5b4747f7fff24:/src/generic/tipwin.cpp diff --git a/src/generic/tipwin.cpp b/src/generic/tipwin.cpp index 216f8e6828..12087b7b4b 100644 --- a/src/generic/tipwin.cpp +++ b/src/generic/tipwin.cpp @@ -24,18 +24,19 @@ #pragma hdrstop #endif +#if wxUSE_TIPWINDOW + +#include "wx/tipwin.h" + #ifndef WX_PRECOMP #include "wx/dcclient.h" + #include "wx/timer.h" + #include "wx/settings.h" #endif // WX_PRECOMP + #ifdef __WXGTK__ #include #endif -#include "wx/tipwin.h" - -#if wxUSE_TIPWINDOW - -#include "wx/timer.h" -#include "wx/settings.h" // ---------------------------------------------------------------------------- // constants @@ -361,7 +362,7 @@ void wxTipWindowView::OnMouseMove(wxMouseEvent& event) const wxRect& rectBound = m_parent->m_rectBound; if ( rectBound.width && - !rectBound.Inside(ClientToScreen(event.GetPosition())) ) + !rectBound.Contains(ClientToScreen(event.GetPosition())) ) { // mouse left the bounding rect, disappear m_parent->Close();