mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-30 17:56:13 +02:00
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:
parent
36db373002
commit
32526da603
@ -1081,7 +1081,7 @@ begin
|
|||||||
if Which = 0 then begin
|
if Which = 0 then begin
|
||||||
pidx := FErrorBarData[0].IndexPlus;
|
pidx := FErrorBarData[0].IndexPlus;
|
||||||
nidx := FErrorBarData[0].IndexMinus;
|
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;
|
if (nidx <> -1) and not InRange(nidx, 0, XCount-1) then exit;
|
||||||
AUpperDelta := Item[APointIndex]^.GetX(pidx);
|
AUpperDelta := Item[APointIndex]^.GetX(pidx);
|
||||||
if nidx = -1 then
|
if nidx = -1 then
|
||||||
|
Loading…
Reference in New Issue
Block a user