mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-26 12:48:20 +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
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
ai: TPoint;
|
ai: TPoint;
|
||||||
|
ext: TDoubleRect;
|
||||||
begin
|
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);
|
SetLength(gp, Count);
|
||||||
if (AxisIndexX < 0) and (AxisIndexY < 0) then
|
if (AxisIndexX < 0) and (AxisIndexY < 0) then
|
||||||
// Optimization: bypass transformations in the default case.
|
// Optimization: bypass transformations in the default case.
|
||||||
|
Loading…
Reference in New Issue
Block a user