From f053a82594b96790799c89cdbe65d55df7bacdd1 Mon Sep 17 00:00:00 2001 From: alberth Date: Fri, 11 Jun 2010 15:37:00 +0000 Subject: (svn r19959) -Fix (r19889): Disable drag destination highlighting when aborting a drag. --- src/order_gui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 160f7469b..ffa009257 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1279,6 +1279,12 @@ public: } this->RaiseWidget(ORDER_WIDGET_GOTO); this->SetWidgetDirty(ORDER_WIDGET_GOTO); + + /* Remove drag highlighting if it exists. */ + if (this->order_over != INVALID_ORDER) { + this->order_over = INVALID_ORDER; + this->SetWidgetDirty(ORDER_WIDGET_ORDER_LIST); + } } virtual void OnMouseLoop() -- cgit v1.2.3-54-g00ecf