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 1665

Summary: SetMinMax fails for Axis having no Chart assigned
Product: .NET TeeChart Reporter: marc meumann <marc>
Component: AxesAssignee: marc meumann <marc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description marc meumann 2016-10-25 09:35:00 EDT
When creating a new Axis without assigning a chart and then setting its MinMax via SetMinMax a null error is generated where the method attempts to notify the Chart.

Example code:
Steema.TeeChart.Axis tmpAxis = new Steema.TeeChart.Axis();
tmpAxis.SetMinMax(0.0, 100.0);

Workaround:
Steema.TeeChart.TChart myChart = new Steema.TeeChart.TChart();
Steema.TeeChart.Axis tmpAxis = new Steema.TeeChart.Axis(myChart.Chart);
tmpAxis.SetMinMax(0.0, 100.0);