mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +02:00
TAChart: Fix crash of IDE due to r60070 #9d2ff37d62
git-svn-id: branches/fixes_2_0@60184 -
This commit is contained in:
parent
0cb5c68866
commit
72b51f3448
@ -1742,13 +1742,12 @@ var
|
||||
labelText: String;
|
||||
dir: TLabelDirection;
|
||||
m: array [TLabelDirection] of Integer absolute AMargins;
|
||||
zero: Double;
|
||||
gp: TDoublePoint;
|
||||
begin
|
||||
if not Marks.IsMarkLabelsVisible or not Marks.AutoMargins then exit;
|
||||
if MarkPositions = lmpInsideCenter then exit;
|
||||
if Count = 0 then exit;
|
||||
|
||||
zero := GetZeroLevel;
|
||||
for i := FLoBound to FUpBound do begin
|
||||
gp := GetGraphPoint(i);
|
||||
if not ParentChart.IsPointInViewPort(gp) then continue;
|
||||
|
Loading…
Reference in New Issue
Block a user