mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 18:10:39 +02:00
TAChart: Do not notify from TListChartSource.SetXValue and SetYValue if the value did not actually change.
git-svn-id: trunk@38779 -
This commit is contained in:
parent
12a20ff9fa
commit
88ff18a61a
@ -577,9 +577,10 @@ var
|
||||
|
||||
begin
|
||||
oldX := Item[AIndex]^.X;
|
||||
Result := AIndex;
|
||||
if oldX = AValue then exit;
|
||||
Item[AIndex]^.X := AValue;
|
||||
UpdateExtent;
|
||||
Result := AIndex;
|
||||
if Sorted then begin
|
||||
if IsNan(AValue) then
|
||||
raise EChartError.Create('X = NaN in a sorted source');
|
||||
@ -649,6 +650,7 @@ var
|
||||
|
||||
begin
|
||||
oldY := Item[AIndex]^.Y;
|
||||
if oldY = AValue then exit;
|
||||
Item[AIndex]^.Y := AValue;
|
||||
if FValuesTotalIsValid then
|
||||
FValuesTotal += NumberOr(AValue) - NumberOr(oldY);
|
||||
|
Loading…
Reference in New Issue
Block a user