mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 16:19:08 +02:00
TAChart: Make sure that TAreasSeries is clipped at the plotarea boundaries.
This commit is contained in:
parent
327c5770ab
commit
5cb240ac36
@ -2308,6 +2308,8 @@ begin
|
||||
scaled_depth := ADrawer.Scale(Depth);
|
||||
SetLength(pts, Length(FGraphPoints) * 4 + 4);
|
||||
|
||||
ADrawer.ClippingStart(ParentChart.ClipRect);
|
||||
try
|
||||
CollectMissing;
|
||||
if Length(missing) = 0 then
|
||||
DrawSegment(0, High(FGraphPoints))
|
||||
@ -2331,6 +2333,9 @@ begin
|
||||
if k <= High(FGraphPoints) then
|
||||
DrawSegment(k, High(FGraphPoints));
|
||||
end;
|
||||
finally
|
||||
ADrawer.ClippingStop;
|
||||
end;
|
||||
|
||||
DrawLabels(ADrawer);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user