Commit 0c61e3aa authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

BUG: Constructor wasn't setting this->Valid if invalid

parent 5b3ea3f5
......@@ -381,11 +381,8 @@ vtkVariant::vtkVariant(const vtkVariant &s2, unsigned int type)
}
}
if (valid)
{
this->Type = type;
this->Valid = valid;
}
this->Type = (valid ? type : 0);
this->Valid = valid;
}
const vtkVariant & vtkVariant::operator= (const vtkVariant & other)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment