mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-22 09:51:32 +02:00
TAChart: Fix expected behavior of Axis.Marks.AtDataOnly if series does not set its AxisIndexes (http://forum.lazarus.freepascal.org/index.php/topic,35606.0.html)
git-svn-id: trunk@54023 -
This commit is contained in:
parent
8a1b0e7f4a
commit
aad2a41b76
@ -585,6 +585,9 @@ begin
|
||||
// FIXME: Intersect axisMin/Max with the union of series extents.
|
||||
// wp: - I think this is fixed in what follows...
|
||||
GetChart.Notify(CMD_QUERY_SERIESEXTENT, self, nil, rng{%H-});
|
||||
// Safe-guard against series having no AxisIndexX/AxisIndexY
|
||||
if IsInfinite(rng.FStart) then rng.FStart := axisMin;
|
||||
if IsInfinite(-rng.FEnd) then rng.FEnd := axisMax;
|
||||
UpdateBounds(rng.FStart, rng.FEnd);
|
||||
d.FMin := rng.FStart;
|
||||
d.FMax := rng.FEnd;
|
||||
|
Loading…
Reference in New Issue
Block a user