mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020799: [CEA] Smesh script fails
This commit is contained in:
parent
db9ba2e978
commit
9e0ab432cc
@ -228,7 +228,7 @@ namespace SMESH
|
||||
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
|
||||
SALOMEDS::Study_var aStudy = aSMESHGen->GetCurrentStudy();
|
||||
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;
|
||||
SMESH::long_array_var anElementsId = theArg->GetIDs();
|
||||
return *this << anElementsId;
|
||||
|
Loading…
Reference in New Issue
Block a user