Hi,
I have found a bug in TCustomTeeGradient.DrawRadial (v.7.07), line 6441,6442 in TeCanvas.pas:
Step:=Math.Min(255,Math.Max(SizeX,SizeY));
InvStep:=1/Step;
if you pass an empty TRect to the procedure Step = 0 and division by 0 is raised.
Thanks
TCustomTeeGradient.DrawRadial
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alessandro,
Could you please send us an example we can run "as-is" or the steps we should follow to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Thanks in advance.
Could you please send us an example we can run "as-is" or the steps we should follow to reproduce the problem here?
You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
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 |
-
- Newbie
- Posts: 9
- Joined: Fri Jan 20, 2006 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alessandro,
I'm unable to reproduce the problem here using this code:
Can you please modify it or send us an example so that we can reproduce the problem here?
Thanks in advance.
I'm unable to reproduce the problem here using this code:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues();
Chart1.Legend.Gradient.Direction:=gdRadial;
end;
procedure TForm1.Chart1GetLegendRect(Sender: TCustomChart;
var Rect: TRect);
begin
Chart1.Title.Text[0]:=IntToStr(Rect.Left)+', '+
IntToStr(Rect.Top)+', '+
IntToStr(Rect.Right)+', '+
IntToStr(Rect.Bottom);
end;
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 |