Bug in TChartValueList.RecalcStats in version 7

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Max
Newbie
Newbie
Posts: 1
Joined: Mon Mar 22, 2004 5:00 am
Location: Auckland, New Zealand
Contact:

Bug in TChartValueList.RecalcStats in version 7

Post by Max » Wed Apr 21, 2004 4:30 am

The new version of TChartValueList.RecalcStats in v7 in TeEngine.pas has a bug where if StartIndex is passed in as 0 the FTotal and FTotalABS values get the 0th item added in twice, once during the initialisation block line 4981, and again as the loop over the values starts at StartIndex as well.

This causes various drawing issue in Pie charts if you are using the OtherSlice capabilities and no doubt other drawing issues I haven't spotted.

I'm going to hack around the problem for now, but I think that someone should have a careful look at the code in question and figure out exactly how it should be fixed for all cases of StartIndex.

Cheers, Max.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed Apr 21, 2004 11:47 am

Hi, Max.

Yes, this is a confirmed bug. I've already posted a fix in this newsgrop. Here is the link.

The fix will be included in upcoming TeeChart v7.01 release.
Marjan Slatinek,
http://www.steema.com

Post Reply