Fixed bug in checking the maximum X value

This commit is contained in:
Guilhem Lavaux 2012-04-25 22:29:17 -04:00
parent 6035eaec4d
commit 7bd2ccbee4

View File

@ -107,7 +107,10 @@ const Interpolate& Interpolate::operator=(const Interpolate& a)
double Interpolate::getMaxX() const 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 { typedef struct {