X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aca5c6971f8dd1b64768de96c7854fd4f48ff23e..04d24675d3d26e9ae8af8b4bd390532d03adcbe1:/src/generic/dragimgg.cpp 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.