TAChart: Fix index limit error in TCustomChartSource.GetErrorBarValues. Part of patch by Marcin Wiazowski for issue #35302.

git-svn-id: trunk@60812 -
This commit is contained in:
wp 2019-04-01 11:25:05 +00:00
parent 36db373002
commit 32526da603

View File

@ -1081,7 +1081,7 @@ begin
if Which = 0 then begin
pidx := FErrorBarData[0].IndexPlus;
nidx := FErrorBarData[0].IndexMinus;
if not InRange(pidx, 0, XCount) then exit;
if not InRange(pidx, 0, XCount-1) then exit;
if (nidx <> -1) and not InRange(nidx, 0, XCount-1) then exit;
AUpperDelta := Item[APointIndex]^.GetX(pidx);
if nidx = -1 then