PAL11200. do not return NULL submeshes from getSubmeshes()

This commit is contained in:
eap 2006-02-16 13:01:00 +00:00
parent 5d147e239e
commit 73b8b394ec

View File

@ -146,7 +146,9 @@ bool getSubMeshes(::SMESH_subMesh* theSubMesh,
}
break;
}
default: theSubMeshList.push_back( aSubMeshDS );
default:
if ( aSubMeshDS )
theSubMeshList.push_back( aSubMeshDS );
}
return size < theSubMeshList.size();
}