TAChart: Fix DataPoint tools not finding stacked TBarSeries values.

git-svn-id: trunk@63884 -
This commit is contained in:
wp 2020-09-17 10:41:14 +00:00
parent 1be98b28e2
commit b842bf6451

View File

@ -1715,7 +1715,9 @@ begin
AResults.FDist := 0;
AResults.FIndex := pointindex;
AResults.FYIndex := stackIndex;
AResults.FValue := DoublePoint(Source[pointindex]^.X, Source[pointindex]^.GetY(stackIndex));
AResults.FValue := DoublePoint(Source[pointIndex]^.X, Source[pointindex]^.GetY(stackIndex));
if FStacked and (stackIndex > 0) then
AResults.FValue.Y := AResults.FValue.Y + heights[stackIndex];
AResults.FValue := AxisToGraph(AResults.FValue);
AResults.FImg := ParentChart.GraphToImage(AResults.FValue);
Result := true;