From ad6ec6e7044a324fe28a2471f84d86149024b6e2 Mon Sep 17 00:00:00 2001 From: ask Date: Sun, 10 Jul 2011 10:41:37 +0000 Subject: [PATCH] TAChart: TChartListbox: Do not enforce single active series without cloShowCheckboxes option git-svn-id: trunk@31658 - --- components/tachart/tachartlistbox.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/tachart/tachartlistbox.pas b/components/tachart/tachartlistbox.pas index 09affc0d12..34feeffa5b 100644 --- a/components/tachart/tachartlistbox.pas +++ b/components/tachart/tachartlistbox.pas @@ -488,8 +488,10 @@ begin Populate; { in case of radiobutton mode, it is necessary to uncheck the other series; there can be only one active series in this mode } - if (FCheckStyle = cbsRadioButton) and (ASender is TBasicChartSeries) then - begin + if + (CheckStyle = cbsRadioButton) and (cloShowCheckboxes in Options) and + (ASender is TBasicChartSeries) + then begin index := FindSeriesIndex(ASender as TCustomChartSeries); if index <> -1 then Checked[index] := (ASender as TCustomChartSeries).Active;