mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 12:56:15 +02:00
TAChart: Calculate TCustomChartSource.BasicExtent based on sorting parameters only when the source really is sorted.
git-svn-id: trunk@61082 -
This commit is contained in:
parent
1fdda19c69
commit
fda91e1ea3
@ -821,7 +821,7 @@ begin
|
||||
UpdateMinMax(vlo, FBasicExtent.a.X, FBasicExtent.b.X);
|
||||
end
|
||||
else
|
||||
if (FSortBy = sbX) and (FSortIndex = 0) then begin
|
||||
if IsSorted and (FSortBy = sbX) and (FSortIndex = 0) then begin
|
||||
UpdateMinMax(Item[0]^.X, FBasicExtent.a.X, FBasicExtent.b.X);
|
||||
UpdateMinMax(Item[Count-1]^.X, FBasicExtent.a.X, FBasicExtent.b.X);
|
||||
end else
|
||||
@ -840,7 +840,7 @@ begin
|
||||
UpdateMinMax(vlo, FBasicExtent.a.Y, FBasicExtent.b.Y);
|
||||
end
|
||||
else
|
||||
if (FSortBy = sbY) and (FSortIndex = 0) then begin
|
||||
if IsSorted and (FSortBy = sbY) and (FSortIndex = 0) then begin
|
||||
UpdateMinMax(Item[0]^.Y, FBasicExtent.a.Y, FBasicExtent.b.Y);
|
||||
UpdateMinMax(Item[Count-1]^.Y, FBasicExtent.a.Y, FBasicExtent.b.Y);
|
||||
end else
|
||||
|
Loading…
Reference in New Issue
Block a user