(svn r21583) -Fix (r21566): The new scrollbar was not ignored correctly for ships and aircrafts.

This commit is contained in:
terkhen 2010-12-21 17:29:00 +00:00
parent a448dc24d9
commit b9f93a48e9
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@ struct RefitWindow : public Window {
const NWidgetCore *matrix_widget = this->GetWidget<NWidgetCore>(VRW_VEHICLE_PANEL_DISPLAY);
if (_current_text_dir == TD_RTL) click_x = matrix_widget->current_x - click_x;
click_x -= this->vehicle_margin;
click_x += this->hscroll->GetPosition();
if (this->hscroll != NULL) click_x += this->hscroll->GetPosition();
return click_x;
}