TAChart: Fix painting of a non-stacked bar series in case of a nonlinear axis transformation.

git-svn-id: trunk@60072 -
This commit is contained in:
wp 2019-01-13 15:47:26 +00:00
parent c09a250d35
commit 554039e183

View File

@ -1188,9 +1188,9 @@ begin
for stackIndex := 0 to Source.YCount - 1 do begin
y := Source[pointIndex]^.GetY(stackIndex);
if not IsNaN(y) then
heights[stackIndex + 1] := y
heights[stackIndex + 1] := AxisToGraphY(y)
else
heights[stackIndex + 1] := 0;
heights[stackIndex + 1] := ZeroLevel;
end;
p.X -= w;
w := w / High(heights);