![]() | Steema Issues DatabaseNote: 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. |
| Summary: | [TV52016346] TLegendPaletteTool does not serialize: procedure TForm1.InitializeCh... | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | christopher ireland <chris> |
| Component: | Chart | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | major | CC: | david |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
| Attachments: | LegendPalette_Serialization example | ||
|
Description
christopher ireland
2013-11-20 10:33:52 EST
The problem is the LegendPalette "Series" property, when deserialized, is not correctly assigned, so LegendPalette Series remains nil. A workaround fix is to reset Series after loading the chart: LoadChartFromStream(Chart2, Stream1); (Chart2.Tools[0] as TLegendPaletteTool).Series:=Chart2[0]; Found the problem. Series was not being serialized because RTL mechanism implies Components need a Name to be able to serialize / deserialize. Setting Series1.Name:='Series1' works fine. I've attached a reproduceable project. Created attachment 62 [details]
LegendPalette_Serialization example
|