The TChartSeries.VisibleCount returns a twice greater result
The TChartSeries.VisibleCount returns a twice greater result
Hello. I use TeeChart Pro v2010.02.20202 Win32. The TChartSeries.VisibleCount returns wrong result (twice greater value). The example is in the attachment
.Re: The TChartSeries.VisibleCount returns a twice greater result
Hi actforex,
I've seen that the function had an "else" missing:
The correction will be included in the next maintenance release. If you are a source code customer, you can modify your sources.
I've seen that the function had an "else" missing:
Code: Select all
Function TChartSeries.VisibleCount:Integer;
var i: Integer;
Begin
result:=0;
if ((FFirstVisibleIndex=0) and (FLastVisibleIndex=Count-1)) then
result:=Count
else // <- correction
if ((FFirstVisibleIndex<>-1) and (FLastVisibleIndex<>-1)) then
begin
if NotMandatoryValueList.Order = loNone then
begin
for i:=0 to Count-1 do
if (XValue[i] >= GetHorizAxis.Minimum) and (XValue[i] <= GetHorizAxis.Maximum) and
(YValue[i] >= GetVertAxis.Minimum) and (YValue[i] <= GetVertAxis.Maximum) then
Inc(result);
end
else
begin
for i:=FFirstVisibleIndex to FLastVisibleIndex do
if (MandatoryValueList.Value[i] >= MandatoryAxis.Minimum) and (MandatoryValueList.Value[i] <= MandatoryAxis.Maximum) then
Inc(result);
end;
end;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |