TAChart: Fix range check on drawing empty line series

git-svn-id: trunk@25910 -
This commit is contained in:
ask 2010-06-05 12:28:15 +00:00
parent a8458a680e
commit a895e51adb

View File

@ -409,7 +409,7 @@ var
// call becomes a bottleneck. So represent a serie as a sequence of polylines.
// This achieves approximately 3x speedup for the typical case.
SetLength(points, 2 * Count);
SetLength(breaks, Count);
SetLength(breaks, Count + 1);
case LineType of
ltFromPrevious: begin
for i := 0 to Count - 2 do