Fixed bug in checking the maximum X value
This commit is contained in:
parent
6035eaec4d
commit
7bd2ccbee4
1 changed files with 4 additions and 1 deletions
|
@ -107,7 +107,10 @@ const Interpolate& Interpolate::operator=(const Interpolate& a)
|
|||
|
||||
double Interpolate::getMaxX() const
|
||||
{
|
||||
return exp(spline->x[spline->size-1]);
|
||||
if (logx)
|
||||
return exp(spline->x[spline->size-1]);
|
||||
else
|
||||
return spline->x[spline->size-1];
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in a new issue