mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-02 02:16:20 +02:00
TAChart: UpdateMinMax should update both min and max if necessary.
git-svn-id: trunk@20088 -
This commit is contained in:
parent
7526bb803e
commit
d18b9a4254
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user