mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-02 16:29:40 +02:00
TAChart: Fix chart with inverted axis crashing when chart size is reduced to 0.
git-svn-id: trunk@46892 -
This commit is contained in:
parent
9023fafbd5
commit
15239eb985
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user