summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-19 21:11:51 +0000
committerrubidium <rubidium@openttd.org>2009-01-19 21:11:51 +0000
commit127d80d3f5d99943f3cc2e9b85465d4b63388b43 (patch)
tree9fdf95f19c9a0ca59cbf432fdfe40f03be20ce62 /src/network
parent6a4c8cf4e24f572c2e48e6d08865f12bf88540c8 (diff)
downloadopenttd-127d80d3f5d99943f3cc2e9b85465d4b63388b43.tar.xz
(svn r15153) -Fix (r15126): the scrollbar's "count" wasn't always correctly set
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 1de6faaf4..fec971f2a 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -434,6 +434,7 @@ public:
this->HideWidget(NCLWW_SELECT_UPDATE);
}
+ SetVScrollCount(this, this->infos.Length());
this->FindWindowPlacementAndResize(desc);
}
@@ -759,6 +760,7 @@ public:
if (this->selected == NULL) this->selected = rci;
*this->infos.Append() = rci;
+ SetVScrollCount(this, this->infos.Length());
/* Incoming data means that we might need to reconsider dependencies */
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {