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 2219

Summary: Access violation exporting chart with TSeriesBandTool to pdf
Product: VCL TeeChart Reporter: Bert Kreisel <bert.kreisel>
Component: ExportAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: david
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version: RAD 10.3 Rio

Description Bert Kreisel 2019-08-05 09:42:11 EDT
Exporting a chart with an TSeriesBandTool causes an access violation if the the TSeriesBandTool property 

Condition = bcLower or if that works if
Condition = bcHigher.

This depends on the data in series1 and series2.
Comment 1 david berneda 2023-03-15 15:04:20 EDT
I could reproduce the AV when the setting is bcLower.
Fixing the bug.
Comment 2 david berneda 2023-03-15 15:12:18 EDT
The fix is at TeePDFCanvas.pas unit, procedure TPDFCanvas.Polygon:

begin
  if Length(Points)>0 then  // Protect against empty point array #2219
...