forked from mirror/OpenTTD
(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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user