]> git.saurik.com Git - wxWidgets.git/commitdiff
Correction for cursor setting when moving out of a sash window (John Dallaway)
authorJulian Smart <julian@anthemion.co.uk>
Wed, 16 Jan 2008 13:50:35 +0000 (13:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 16 Jan 2008 13:50:35 +0000 (13:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/sashwin.cpp

index fc30aba8219b5540ef3bfbc1a2db3e28c08503a1..e4f50b756ed3d39bcc7d37f93c174f49f28407d2 100644 (file)
@@ -289,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 )