(svn r10238) -Fix (r10236): Resizing the timetable window caused it to think it could only show one line at a time.
authormaedhros
Wed, 20 Jun 2007 19:57:18 +0000
changeset 7478 e66a0d39b87d
parent 7477 1f22e188617e
child 7479 590cd5750b70
(svn r10238) -Fix (r10236): Resizing the timetable window caused it to think it could only show one line at a time.
src/timetable_gui.cpp
--- a/src/timetable_gui.cpp	Wed Jun 20 19:26:25 2007 +0000
+++ b/src/timetable_gui.cpp	Wed Jun 20 19:57:18 2007 +0000
@@ -263,7 +263,7 @@
 
 		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;
 
 	}