TAChart: Do not draw line series if it lies totally outside of the current extent

git-svn-id: trunk@25918 -
This commit is contained in:
ask 2010-06-05 14:16:57 +00:00
parent 95f7e807b0
commit 89e0f1b9ba

View File

@ -453,7 +453,14 @@ var
var
i: Integer;
ai: TPoint;
ext: TDoubleRect;
begin
ext.a := AxisToGraph(Source.Extent.a);
ext.b := AxisToGraph(Source.Extent.b);
if LineType = ltFromOrigin then
ExpandRect(ext, AxisToGraph(ZeroDoublePoint));
if not RectIntersectsRect(ext, ParentChart.CurrentExtent) then exit;
SetLength(gp, Count);
if (AxisIndexX < 0) and (AxisIndexY < 0) then
// Optimization: bypass transformations in the default case.