Make Variable::SetRange() more forgiving.

This commit is contained in:
Alex Wilson 2012-02-02 14:02:03 +13:00
parent 015e5f06d8
commit bad1d6ba7e

View File

@ -137,11 +137,9 @@ Variable::SetMax(double max)
void void
Variable::SetRange(double min, double max) Variable::SetRange(double min, double max)
{ {
if (!fIsValid)
return;
fMin = min; fMin = min;
fMax = max; fMax = max;
if (fIsValid)
fLS->UpdateRange(this); fLS->UpdateRange(this);
} }