I found what I believe to be a bug in Chart.pas that affects the drawing of legend items when the legend is positioned at the top or bottom.
Change from:
if Vertical then
tmpSt:=Items[ItemOrder,t]
else
tmpSt:=Items[ItemOrder+(ITotalItems-ILastValue-1),t]; // v8 fix
Change to:
tmpSt:=Items[ItemOrder,t];
Because of the way that Items is populated, the same code should be used, regardless of the value of Vertical. The original code improperly displays the legend items, and can raise an exception when the FirstValue property is set.
Regards,
Bill
Source code change to procedure DrawLegendItem in Chart.pas
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Bill,
Could you please send us a simple example project we can run "as-is" to reproduce the bug here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance!
Could you please send us a simple example project we can run "as-is" to reproduce the bug here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance!
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |