diff --git a/src/generic/sashwin.cpp b/src/generic/sashwin.cpp index b079f5c250..46a3e5f7eb 100644 --- a/src/generic/sashwin.cpp +++ b/src/generic/sashwin.cpp @@ -110,6 +110,9 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event) wxSashEdgePosition sashHit = SashHitTest(x, y); + // reset the cursor + SetCursor(wxCursor()); + if (event.LeftDown()) { if ( sashHit != wxSASH_NONE ) @@ -146,8 +149,6 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event) wxScreenDC::EndDrawingOnTop(); m_dragMode = wxSASH_DRAG_NONE; m_draggingEdge = wxSASH_NONE; - - SetCursor(*wxSTANDARD_CURSOR); } else if (event.LeftUp() && m_dragMode == wxSASH_DRAG_DRAGGING) { @@ -239,10 +240,6 @@ void wxSashWindow::OnMouseEvent(wxMouseEvent& event) SetCursor(*m_sashCursorNS); } } - else - { - SetCursor(*wxSTANDARD_CURSOR); - } } else if ( event.Dragging() && ((m_dragMode == wxSASH_DRAG_DRAGGING) || (m_dragMode == wxSASH_DRAG_LEFT_DOWN))