mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-09 09:39:37 +02:00
TAChart: Fix bounds search for rotated line series
git-svn-id: trunk@25924 -
This commit is contained in:
parent
e8d4380072
commit
252e281d13
@ -467,7 +467,10 @@ begin
|
||||
lb := 0;
|
||||
ub := Count - 1;
|
||||
if LineType <> ltFromOrigin then begin
|
||||
Source.FindBounds(GraphToAxisX(ext.a.X), GraphToAxisX(ext.b.X), lb, ub);
|
||||
if IsRotated then
|
||||
Source.FindBounds(GraphToAxisY(ext.a.Y), GraphToAxisY(ext.b.Y), lb, ub)
|
||||
else
|
||||
Source.FindBounds(GraphToAxisX(ext.a.X), GraphToAxisX(ext.b.X), lb, ub);
|
||||
lb := Max(lb - 1, 0);
|
||||
ub := Min(ub + 1, Count - 1);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user