From b9f93a48e96949b3012d883886de9e9034410451 Mon Sep 17 00:00:00 2001 From: terkhen Date: Tue, 21 Dec 2010 17:29:00 +0000 Subject: (svn r21583) -Fix (r21566): The new scrollbar was not ignored correctly for ships and aircrafts. --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index cd4febcfa..2d1e15694 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -729,7 +729,7 @@ struct RefitWindow : public Window { const NWidgetCore *matrix_widget = this->GetWidget(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; } -- cgit v1.2.3-54-g00ecf