Linux fix

p4#: 21418
This commit is contained in:
Magne Sjaastad 2013-04-25 08:48:56 +02:00
parent c0bfc9bbe1
commit 9c8c12955b

View File

@ -258,10 +258,10 @@ void PdmObject::firstAncestorOfType(T*& ancestor) const
while (parents.size() > 0)
{
CVF_ASSERT(parents.size() == 1);
assert(parents.size() == 1);
PdmObject* firstParent = parents[0];
CVF_ASSERT(firstParent);
assert(firstParent);
T* objectOfType = dynamic_cast<T*>(firstParent);
if (objectOfType)