mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-04 02:06:12 +01:00
(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);
|
this->HideWidget(NCLWW_SELECT_UPDATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetVScrollCount(this, this->infos.Length());
|
||||||
this->FindWindowPlacementAndResize(desc);
|
this->FindWindowPlacementAndResize(desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -759,6 +760,7 @@ public:
|
|||||||
if (this->selected == NULL) this->selected = rci;
|
if (this->selected == NULL) this->selected = rci;
|
||||||
|
|
||||||
*this->infos.Append() = rci;
|
*this->infos.Append() = rci;
|
||||||
|
SetVScrollCount(this, this->infos.Length());
|
||||||
|
|
||||||
/* Incoming data means that we might need to reconsider dependencies */
|
/* Incoming data means that we might need to reconsider dependencies */
|
||||||
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
|
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user