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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 15 years ago
parent 5fd5ae125a
commit d81a3ba2da

@ -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)));
}
/**

Loading…
Cancel
Save