Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 314

Summary: [TV52015608] Having a line with some thousand points and XValues.Order=loNone, if ...
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: david
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2013-11-20 10:37:59 EST
Having a line with some thousand points and XValues.Order=loNone, if you zoom several times, a vertical line is drawn over the chart.
Code to reproduce it:
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.View3D:=false;
  Chart1.AddSeries(TLineSeries).FillSampleValues(10000);
  Chart1[0].XValues.Order:=loNone;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.Axes.Bottom.SetMinMax(1000,1025);
end;
Forums topic:
http://www.teechart.net/support/viewtopic.php?f=3&t=12385&p=53400#p53400 [created:2011-06-10T15:48:40.000+01:00 reported by:yeray@steema.com reported in version:2011.03.30407 (TeeChart VCL)]
Comment 1 david berneda 2013-12-04 04:59:21 EST
Fixed.

The internal Line/Area/HorizLine series calculation to avoid pixel coordinates overflow maximum coordinates (Series.pas CalcPosLeftRight etc) has been improved and corrected.

A new check is done for every line segment to avoid painting it, if the line origin or ending XY coordinates are not inside (or do not cross) the Chart bounds rectangle.

Also fixed the above checking methods for horizontal series (HorizLine, etc)