]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1635287 ] wrong cursor when dragging an image
authorRobert Roebling <robert@roebling.de>
Wed, 16 Jan 2008 08:50:36 +0000 (08:50 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 16 Jan 2008 08:50:36 +0000 (08:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dragimgg.cpp

index 6cf4a3392561f5830686cf9f1d4aba7e54086002..2cb2ed6130d6d3363535cc4deaa2125c8ecb2148 100644 (file)
@@ -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.