0020799: [CEA] Smesh script fails

This commit is contained in:
dmv 2010-03-22 14:48:33 +00:00
parent db9ba2e978
commit 9e0ab432cc

View File

@ -228,7 +228,7 @@ namespace SMESH
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen(); SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
SALOMEDS::Study_var aStudy = aSMESHGen->GetCurrentStudy(); SALOMEDS::Study_var aStudy = aSMESHGen->GetCurrentStudy();
SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg); SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg);
if(!aSObject->_is_nil()) if(!aSObject->_is_nil() || CORBA::is_nil( theArg ))
return *this << aSObject; return *this << aSObject;
SMESH::long_array_var anElementsId = theArg->GetIDs(); SMESH::long_array_var anElementsId = theArg->GetIDs();
return *this << anElementsId; return *this << anElementsId;