(svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard input, depot/group window wasn't updated (original patch by GrimRC)

This commit is contained in:
smatz
2008-02-17 12:21:05 +00:00
parent 16e23a75fe
commit 291931bf50
4 changed files with 17 additions and 5 deletions

View File

@@ -1085,8 +1085,6 @@ static bool HandleDragDrop()
w = GetCallbackWnd();
ResetObjectToPlace();
if (w != NULL) {
/* send an event in client coordinates. */
e.event = WE_DRAGDROP;
@@ -1095,6 +1093,9 @@ static bool HandleDragDrop()
e.we.dragdrop.widget = GetWidgetFromPos(w, e.we.dragdrop.pt.x, e.we.dragdrop.pt.y);
w->wndproc(w, &e);
}
ResetObjectToPlace();
return false;
}