![]() | 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: | AxisBreakTool Editor add incorrectly the breaks | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | sandra pazos <sandra> |
| Component: | Editors | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | major | CC: | chris |
| Priority: | --- | ||
| Version: | TeeChart for .NET 4.1.2013.07300 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Editor problem, not tool problem. |
When you work with editor in design-time and you add a new AxesBreaksTool with its breaks, appears a NullReferenceException in the AxisBreak class. I have made many test and I think the problem is caused by the order that Editor added the default properties and the new AxisBreak tool is created to assign an existent Axisbreak tool in the code. To reproduce the problem exactly, see next piece of code: Code is added for AxisBreak editor: // axisBreaksTool1 // this.axisBreaksTool1.Axis = this.tChart1.Axes.Bottom; axisBreak1.EndValue = 0D; axisBreak1.StartValue = 0D; new Steema.TeeChart.Tools.AxisBreaks().Add(axisBreak1); // Previous code causes the NullReferenceException. On the other hand, I have made modifications in the code and the NullReferenceExeception disappears: this.axisBreaksTool1.Axis = this.tChart1.Axes.Bottom; this.axisBreaksTool1.Breaks.Add(axisBreak1); axisBreak1.EndValue = 0D; axisBreak1.StartValue = 0D; My opinion is that the Editor should assign the break to the existing AxisBreakTool and respects the order tools is created and assigned.