TAChart: Fix crash of IDE due to r60070 #9d2ff37d62

git-svn-id: trunk@60082 -
This commit is contained in:
wp 2019-01-14 17:59:59 +00:00
parent cab53de86d
commit 4747a4d09e

View File

@ -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;