mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 23:49:36 +02:00
TAChart: Use data point index limits FLoBound and FUoBound instead of 0 and Count-1 in data point labeling routines. Issue #34819. Patch by Marcin Wiazowski.
git-svn-id: trunk@60070 -
This commit is contained in:
parent
6d5b031556
commit
9d2ff37d62
@ -1256,7 +1256,7 @@ begin
|
||||
lfont.Assign(Marks.LabelFont);
|
||||
ParentChart.DisableRedrawing;
|
||||
|
||||
for i := 0 to Count - 1 do begin
|
||||
for i := FLoBound to FUpBound do begin
|
||||
if IsNan(Source[i]^.Point) then continue;
|
||||
g := GetLabelDataPoint(i);
|
||||
ld := GetLabelDirection(i);
|
||||
@ -1741,7 +1741,7 @@ begin
|
||||
if MarkPositions = lmpInsideCenter then exit;
|
||||
|
||||
zero := GetZeroLevel;
|
||||
for i := 0 to Count - 1 do begin
|
||||
for i := FLoBound to FUpBound do begin
|
||||
gp := GetGraphPoint(i);
|
||||
if not ParentChart.IsPointInViewPort(gp) then continue;
|
||||
labelText := FormattedMark(i);
|
||||
|
Loading…
Reference in New Issue
Block a user