[ 1635287 ] wrong cursor when dragging an image

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-01-16 08:50:36 +00:00
parent 302511a3ca
commit f782a8dbc9

View File

@@ -249,14 +249,14 @@ bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot,
m_isDirty = false; m_isDirty = false;
m_isDirty = false; m_isDirty = false;
window->CaptureMouse();
if (m_cursor.Ok()) if (m_cursor.Ok())
{ {
m_oldCursor = window->GetCursor(); m_oldCursor = window->GetCursor();
window->SetCursor(m_cursor); window->SetCursor(m_cursor);
} }
window->CaptureMouse();
// Make a copy of the window so we can repair damage done as the image is // Make a copy of the window so we can repair damage done as the image is
// dragged. // dragged.