(svn r22118) -Fix [FS#4525]: The refit window was not correctly updated after selecting with Ctrl+Click (Regiovogel).

This commit is contained in:
terkhen 2011-02-20 18:32:42 +00:00
parent bd9610ec3c
commit dcd158b03e
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}