TAChart: streaming issue in TFitSeries
Original Reporter info from Mantis: Marcin Wiazowski
-
Reporter name:
Original Reporter info from Mantis: Marcin Wiazowski
- Reporter name:
Description:
The issue is of same kind as #35125 (closed), so I'll provide only a basic description here.
The attached Reproduce application has two identical charts, with two identical TFitSeries series. I edited LFM file manually, so the behavior is:
Chart1FitSeries:
FitEquation = feCustom <==== sets ParamCount to default value 3
ParamCount = 6 <==== sets ParamCount to 6
Chart2FitSeries:
ParamCount = 6 <==== sets ParamCount to 6
FitEquation = feCustom <==== sets ParamCount to default value 3
As a consequence, Chart2FitSeries ends up with ParamCount = 3 instead of 6, which raises an exception in FormCreate(), where there is expected that ParamCount is 6.
The attached patch is trivial and solves the problem.
Mantis conversion info:
- Mantis ID: 35178
- Build: 60564
- Version: 2.1 (SVN)
- Fixed in revision: 60566 (#a178f5a0)
- Target version: 2.2