mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:59:12 +02:00
TAChart: Simplify calculation of TCustomChartSource.BasicExtent when XCount = 0.
git-svn-id: trunk@60998 -
This commit is contained in:
parent
dcb6dc0705
commit
f6fc50d43c
@ -828,8 +828,8 @@ begin
|
||||
for i:=0 to Count - 1 do
|
||||
UpdateMinMax(Item[i]^.X, FBasicExtent.a.X, FBasicExtent.b.X);
|
||||
end else begin
|
||||
UpdateMinMax(0, FBasicExtent.a.X, FBasicExtent.b.X);
|
||||
UpdateMinMax(Count-1, FBasicExtent.a.X, FBasicExtent.b.X);
|
||||
FBasicExtent.a.X := 0;
|
||||
FBasicExtent.b.X := Count - 1;
|
||||
end;
|
||||
|
||||
if YCount > 0 then begin
|
||||
|
Loading…
Reference in New Issue
Block a user