From 25a3227bc9945eee5a9e060edd42663a71ef59be Mon Sep 17 00:00:00 2001 From: wp Date: Sun, 11 Jan 2015 22:11:00 +0000 Subject: [PATCH] TAChart: Modify TBoxAndWhiskerSeries.AddXY to use correct YCount value. git-svn-id: trunk@47343 - --- components/tachart/tamultiseries.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/components/tachart/tamultiseries.pas b/components/tachart/tamultiseries.pas index fa2cfe8699..e1c28aaf8b 100644 --- a/components/tachart/tamultiseries.pas +++ b/components/tachart/tamultiseries.pas @@ -446,6 +446,7 @@ 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;