mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r15153) -Fix (r15126): the scrollbar's "count" wasn't always correctly set
This commit is contained in:
parent
537112fcb1
commit
914073a30a
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue