summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-16 20:34:57 +0000
committerrubidium <rubidium@openttd.org>2009-11-16 20:34:57 +0000
commit626de6b128f3580c9559b2d09b15bb4ed314a20a (patch)
tree93239d913d9ad578483f4e7cbd42e76427bcf7a5 /src/order_gui.cpp
parentcb3c4f2ebe01b91562ecf21b56742e31b4086d91 (diff)
downloadopenttd-626de6b128f3580c9559b2d09b15bb4ed314a20a.tar.xz
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 36f5dba41..1cb88c346 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -677,9 +677,6 @@ public:
this->selected_order = -1;
this->owner = v->owner;
- int num_lines = (this->GetWidget<NWidgetBase>(ORDER_WIDGET_ORDER_LIST)->current_y - WD_FRAMERECT_TOP - WD_FRAMERECT_BOTTOM) / this->resize.step_height;
- this->vscroll.SetCapacity(num_lines);
-
if (_settings_client.gui.quick_goto && v->owner == _local_company) {
/* If there are less than 2 station, make Go To active. */
int station_orders = 0;