]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/sashwin.cpp
Fix tracking rectangles in 64-bit build by remembering the tag as the 64-bit integer...
[wxWidgets.git] / src / generic / sashwin.cpp
index 3a4e2b6d9700b39cb9c56f7e58dcf5dff1d495af..e4f50b756ed3d39bcc7d37f93c174f49f28407d2 100644 (file)
     #include "wx/settings.h"
     #include "wx/dcclient.h"
     #include "wx/dcscreen.h"
+    #include "wx/math.h"
 #endif
 
-#include "wx/math.h"
-
 #include <stdlib.h>
 
 #include "wx/laywin.h"
@@ -290,7 +289,7 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event)
            ReleaseMouse();
         m_mouseCaptured = false;
     }
-    else if (event.Moving() && !event.Dragging())
+    else if ((event.Moving() || event.Leaving()) && !event.Dragging())
     {
         // Just change the cursor if required
         if ( sashHit != wxSASH_NONE )