From dcd158b03efae9e514820f8c4682b8b69ce39db6 Mon Sep 17 00:00:00 2001 From: terkhen Date: Sun, 20 Feb 2011 18:32:42 +0000 Subject: [PATCH] (svn r22118) -Fix [FS#4525]: The refit window was not correctly updated after selecting with Ctrl+Click (Regiovogel). --- src/vehicle_gui.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 048af0e4cf..96580dac9f 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -795,7 +795,12 @@ struct RefitWindow : public Window { this->click_x = GetClickPosition(pt.x - nwi->pos_x); this->SetSelectedVehicles(pt.x - nwi->pos_x); this->SetWidgetDirty(VRW_VEHICLE_PANEL_DISPLAY); - if (!_ctrl_pressed) SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this); + if (!_ctrl_pressed) { + SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this); + } else { + /* The vehicle selection has changed. */ + this->InvalidateData(2); + } break; }