TAChart: Restore previous behavior of TDataPointDragTool being able to change both x and y values (lost in r53954 #c4a923c858).

git-svn-id: trunk@54271 -
This commit is contained in:
wp 2017-02-25 17:00:45 +00:00
parent 673bc11392
commit 9d64ee4506

View File

@ -1425,10 +1425,11 @@ begin
sp := GraphToAxis(ANewPos); sp := GraphToAxis(ANewPos);
case AYIndex of case AYIndex of
-1: begin -1: begin
ListSource.SetXValue(AIndex, sp.X); // ListSource.SetXValue(AIndex, sp.X);
ListSource.SetYValue(AIndex, sp.Y); // ListSource.SetYValue(AIndex, sp.Y);
end; end;
0: begin 0: begin
ListSource.SetXValue(AIndex, sp.X);
ListSource.SetYValue(AIndex, sp.Y); ListSource.SetYValue(AIndex, sp.Y);
end; end;
else else