From f782a8dbc97e83a47798d5d7847c47fcfe63e6ea Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 16 Jan 2008 08:50:36 +0000 Subject: [PATCH] [ 1635287 ] wrong cursor when dragging an image git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/dragimgg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.47.2