]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dragimgg.cpp
set listview extended styles after switching to report view and not only when creatin...
[wxWidgets.git] / 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.