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

git-svn-id: branches/fixes_2_0@60184 -
This commit is contained in:
mattias 2019-01-24 09:45:07 +00:00
parent 0cb5c68866
commit 72b51f3448

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;