TAChart: Fix interval merging

git-svn-id: trunk@26676 -
This commit is contained in:
ask 2010-07-16 08:15:53 +00:00
parent ac4ce25717
commit 1e37069221

View File

@ -698,7 +698,7 @@ begin
if i <= High(FIntervals) then
AStart := Min(AStart, FIntervals[i].FStart);
j := High(FIntervals);
while (j >= 0) and (FIntervals[j].FStart > FIntervals[j].FEnd) do
while (j >= 0) and (FIntervals[j].FStart > AEnd) do
Dec(j);
if j >= 0 then
AEnd := Max(AEnd, FIntervals[j].FEnd);