(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds
authorskidd13
Sun, 25 Nov 2007 15:17:16 +0000
changeset 8462 2dad58135d95
parent 8461 385ca6f76feb
child 8463 3920ac0ab803
(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds
src/network/network_gui.cpp
--- a/src/network/network_gui.cpp	Sun Nov 25 14:43:16 2007 +0000
+++ b/src/network/network_gui.cpp	Sun Nov 25 15:17:16 2007 +0000
@@ -539,6 +539,8 @@
 
 		w->widget[NGWW_MATRIX].data = (w->vscroll.cap << 8) + 1;
 
+		SetVScrollCount(w, ld->list_length);
+
 		int widget_width = w->widget[NGWW_FIND].right - w->widget[NGWW_FIND].left;
 		int space = (w->width - 4 * widget_width - 25) / 3;