fixed stepit(integer)

patch from: Matthijs Willemstein

git-svn-id: trunk@8709 -
This commit is contained in:
vincents 2006-02-05 14:55:41 +00:00
parent 02d58be3f6
commit b147b403b4

View File

@ -236,8 +236,7 @@ end;
------------------------------------------------------------------------------}
procedure TCustomProgressBar.StepBy(Delta: Integer);
begin
if FStep < Delta then FPosition := FPosition + (Delta - FStep);
if FStep > Delta then FPosition := FPosition - (Delta);
FPosition := FPosition + Delta - FStep;
StepIt;
end;