summaryrefslogtreecommitdiff
path: root/src/timetable_gui.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-06-20 19:57:18 +0000
committermaedhros <maedhros@openttd.org>2007-06-20 19:57:18 +0000
commit996fde16992e7243cdf5653d1ecf4a643e82e76c (patch)
treea9e5a2540ca1e7ff94bc4c9a6ecfb7747c993941 /src/timetable_gui.cpp
parentb2609653e46abeaf447df6052c10887a6055adc9 (diff)
downloadopenttd-996fde16992e7243cdf5653d1ecf4a643e82e76c.tar.xz
(svn r10238) -Fix (r10236): Resizing the timetable window caused it to think it could only show one line at a time.
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r--src/timetable_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp
index 303664c56..6745353f3 100644
--- a/src/timetable_gui.cpp
+++ b/src/timetable_gui.cpp
@@ -263,7 +263,7 @@ static void TimetableWndProc(Window *w, WindowEvent *we)
case WE_RESIZE:
/* Update the scroll + matrix */
- w->vscroll.cap = (w->widget[2].bottom - w->widget[2].top) / 10;
+ w->vscroll.cap = (w->widget[3].bottom - w->widget[3].top) / 10;
break;
}