mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 13:17:18 +02:00
TAChart: Support axis transformations in TCustomChartSeries.MovePoint
git-svn-id: trunk@38788 -
This commit is contained in:
parent
54f6a99a13
commit
cdecf4667d
@ -1056,11 +1056,14 @@ end;
|
||||
|
||||
procedure TBasicPointSeries.MovePoint(
|
||||
var AIndex: Integer; const ANewPos: TDoublePoint);
|
||||
var
|
||||
p: TDoublePoint;
|
||||
begin
|
||||
if not InRange(AIndex, 0, Count - 1) then exit;
|
||||
p := GraphToAxis(ANewPos);
|
||||
with ListSource do begin
|
||||
AIndex := SetXValue(AIndex, ANewPos.X);
|
||||
SetYValue(AIndex, ANewPos.Y);
|
||||
AIndex := SetXValue(AIndex, p.X);
|
||||
SetYValue(AIndex, p.Y);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user