Make Variable::SetRange() more forgiving.
This commit is contained in:
parent
015e5f06d8
commit
bad1d6ba7e
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user