mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 21:02:43 +02:00
TAChart: Remove redunant checks for YCount when adding data points to built-in listsource of a series.
git-svn-id: trunk@60452 -
This commit is contained in:
parent
df925c15ce
commit
647cf1e646
@ -475,7 +475,6 @@ end;
|
||||
function TBubbleSeries.AddXY(AX, AY, ARadius: Double; AXLabel: String;
|
||||
AColor: TColor): Integer;
|
||||
begin
|
||||
if ListSource.YCount < 2 then ListSource.YCount := 2;
|
||||
Result := AddXY(AX, AY, [ARadius], AXLabel, AColor);
|
||||
end;
|
||||
|
||||
@ -908,7 +907,6 @@ function TBoxAndWhiskerSeries.AddXY(
|
||||
AX, AYLoWhisker, AYLoBox, AY, AYHiBox, AYHiWhisker: Double; AXLabel: String;
|
||||
AColor: TColor): Integer;
|
||||
begin
|
||||
if ListSource.YCount < 5 then ListSource.YCount := 5;
|
||||
Result := AddXY(
|
||||
AX, AYLoWhisker, [AYLoBox, AY, AYHiBox, AYHiWhisker], AXLabel, AColor);
|
||||
end;
|
||||
@ -1291,8 +1289,6 @@ function TOpenHighLowCloseSeries.AddXOHLC(
|
||||
var
|
||||
y: Double;
|
||||
begin
|
||||
if ListSource.YCount < 4 then ListSource.YCount := 4;
|
||||
|
||||
if YIndexOpen = 0 then
|
||||
y := AOpen
|
||||
else if YIndexHigh = 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user