TAChart: Fix lower bound calculation for unsorted chart sources

git-svn-id: trunk@27728 -
This commit is contained in:
ask 2010-10-17 06:43:53 +00:00
parent 96e84da1eb
commit d8afe5e250

View File

@ -478,7 +478,7 @@ begin
while (ALB < Count) and (Item[ALB]^.X < AXMin) do
Inc(ALB);
AUB := Count - 1;
while (AUB > 0) and (Item[AUB]^.X > AXMax) do
while (AUB >= 0) and (Item[AUB]^.X > AXMax) do
Dec(AUB);
end;
end;