TAChart: Minor improvement of r60549 #8baa6bdbc1. Patch by Marcin Wiazowski, issue #35162

git-svn-id: trunk@60558 -
This commit is contained in:
wp 2019-03-02 16:15:35 +00:00
parent 7823062d48
commit e17a5c165c

View File

@ -2032,10 +2032,10 @@ end;
.Value = NaN, and .Fixed = false.
By default, the fit base functions (.Func) are set to a polynomial because
all implemented fitting types are of this kind.
all built-in fitting types are of this kind.
In case of custom fitting, the fit base functions become equal to the
functions FCustomFuncs defined separately by the method SetFitBasisFunc().
function .CustomFunc defined separately by the method SetFitBasisFunc().
}
function TFitSeries.PrepareFitParams: Boolean;
var
@ -2051,9 +2051,9 @@ begin
if FFitEquation <> feCustom then
FFitParams[i].Func := @FitBaseFunc_Poly
else begin
FFitParams[i].Func := FFitParams[i].CustomFunc;
if FFitParams[i].Func = nil then
if FFitParams[i].CustomFunc = nil then
exit;
FFitParams[i].Func := FFitParams[i].CustomFunc;
end;
end;