(svn r17399) -Fix (r17365): if scrollbar has more capacity than elements clicking on the "scroll down" button asserted (esminis)

This commit is contained in:
rubidium 2009-09-03 09:07:14 +00:00
parent 5fd5ae125a
commit d81a3ba2da
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ public:
void UpdatePosition(int difference)
{
if (difference == 0) return;
this->SetPosition(Clamp(this->pos + difference, 0, this->count - this->cap));
this->SetPosition(Clamp(this->pos + difference, 0, max(this->count - this->cap, 0)));
}
/**