TAChart: Fix chart with inverted axis crashing when chart size is reduced to 0.

git-svn-id: trunk@46892 -
This commit is contained in:
wp 2014-11-20 08:30:49 +00:00
parent 9023fafbd5
commit 15239eb985

View File

@ -585,7 +585,7 @@ begin
FValueMin := GetTransform.AxisToGraph(axisMin);
FValueMax := GetTransform.AxisToGraph(axisMax);
end;
if Inverted then
if Inverted and (Length(FMarkValues) > 0) then
for i := 0 to High(FMarkValues) div 2 do begin
t := FMarkValues[i];
FMarkValues[i] := FMarkValues[High(FMarkValues) - i];