Fixed bug in checking the maximum X value
This commit is contained in:
parent
6035eaec4d
commit
7bd2ccbee4
@ -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 New Issue
Block a user