mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
fix GetLastError()
This commit is contained in:
parent
9f37441960
commit
5894f538ab
@ -649,7 +649,7 @@ SMESH::long_array* SMESH_MeshEditor_i::GetLastCreatedElems()
|
||||
|
||||
SMESH::ComputeError* SMESH_MeshEditor_i::GetLastError()
|
||||
{
|
||||
SMESH::ComputeError* errOut = new SMESH::ComputeError;
|
||||
SMESH::ComputeError_var errOut = new SMESH::ComputeError;
|
||||
SMESH_ComputeErrorPtr& errIn = getEditor().GetError();
|
||||
if ( errIn && !errIn->IsOK() )
|
||||
{
|
||||
@ -658,7 +658,7 @@ SMESH::ComputeError* SMESH_MeshEditor_i::GetLastError()
|
||||
errOut->subShapeID = -1;
|
||||
errOut->hasBadMesh = !errIn->myBadElements.empty();
|
||||
}
|
||||
return errOut;
|
||||
return errOut._retn();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user