From 4747a4d09ea39f84374302acadd502f8026e8595 Mon Sep 17 00:00:00 2001 From: wp Date: Mon, 14 Jan 2019 17:59:59 +0000 Subject: [PATCH] TAChart: Fix crash of IDE due to r60070 #9d2ff37d62 git-svn-id: trunk@60082 - --- components/tachart/tacustomseries.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/tachart/tacustomseries.pas b/components/tachart/tacustomseries.pas index 744ae586d5..4a7f0abdaf 100644 --- a/components/tachart/tacustomseries.pas +++ b/components/tachart/tacustomseries.pas @@ -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;