TAChart: UpdateMinMax should update both min and max if necessary.

git-svn-id: trunk@20088 -
This commit is contained in:
ask 2009-05-21 07:16:09 +00:00
parent 7526bb803e
commit d18b9a4254

View File

@ -305,8 +305,8 @@ end;
procedure UpdateMinMax(AValue: Double; var AMin, AMax: Double);
begin
if AValue < AMin then
AMin := AValue
else if AValue > AMax then
AMin := AValue;
if AValue > AMax then
AMax := AValue;
end;