summaryrefslogtreecommitdiff
path: root/src
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
commitd5da0e074029d6a60f792a4866f9b743a576ae24 (patch)
treea9e5a2540ca1e7ff94bc4c9a6ecfb7747c993941 /src
parent29490c6bec466a534194fe36017da4b4f95314c3 (diff)
downloadopenttd-d5da0e074029d6a60f792a4866f9b743a576ae24.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')
-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;
}