Page 1 of 1

Bug in TChartValueList.RecalcStats in version 7

Posted: Wed Apr 21, 2004 4:30 am
by 9336557
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.

Posted: Wed Apr 21, 2004 11:47 am
by Marjan
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.