# HG changeset patch # User terkhen # Date 2011-02-20 18:32:42 # Node ID 708316e71331da18a725fd2076501028fbf99c00 # Parent f6bd0f7fe25f850ba049c3e0514aeb67d212cdb7 (svn r22118) -Fix [FS#4525]: The refit window was not correctly updated after selecting with Ctrl+Click (Regiovogel). diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp --- 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; }