mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 14:22:49 +02:00
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:
parent
95f7e807b0
commit
89e0f1b9ba
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user