From: Robert Roebling Date: Wed, 16 Jan 2008 08:50:36 +0000 (+0000) Subject: [ 1635287 ] wrong cursor when dragging an image X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f782a8dbc97e83a47798d5d7847c47fcfe63e6ea [ 1635287 ] wrong cursor when dragging an image git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/dragimgg.cpp b/src/generic/dragimgg.cpp index 6cf4a33925..2cb2ed6130 100644 --- a/src/generic/dragimgg.cpp +++ b/src/generic/dragimgg.cpp @@ -249,14 +249,14 @@ bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot, m_isDirty = false; m_isDirty = false; - window->CaptureMouse(); - if (m_cursor.Ok()) { m_oldCursor = window->GetCursor(); window->SetCursor(m_cursor); } + window->CaptureMouse(); + // Make a copy of the window so we can repair damage done as the image is // dragged.