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,8 +649,8 @@ SMESH::long_array* SMESH_MeshEditor_i::GetLastCreatedElems()
|
|||||||
|
|
||||||
SMESH::ComputeError* SMESH_MeshEditor_i::GetLastError()
|
SMESH::ComputeError* SMESH_MeshEditor_i::GetLastError()
|
||||||
{
|
{
|
||||||
SMESH::ComputeError* errOut = new SMESH::ComputeError;
|
SMESH::ComputeError_var errOut = new SMESH::ComputeError;
|
||||||
SMESH_ComputeErrorPtr& errIn = getEditor().GetError();
|
SMESH_ComputeErrorPtr& errIn = getEditor().GetError();
|
||||||
if ( errIn && !errIn->IsOK() )
|
if ( errIn && !errIn->IsOK() )
|
||||||
{
|
{
|
||||||
errOut->code = -( errIn->myName < 0 ? errIn->myName + 1: errIn->myName ); // -1 -> 0
|
errOut->code = -( errIn->myName < 0 ? errIn->myName + 1: errIn->myName ); // -1 -> 0
|
||||||
@ -658,7 +658,7 @@ SMESH::ComputeError* SMESH_MeshEditor_i::GetLastError()
|
|||||||
errOut->subShapeID = -1;
|
errOut->subShapeID = -1;
|
||||||
errOut->hasBadMesh = !errIn->myBadElements.empty();
|
errOut->hasBadMesh = !errIn->myBadElements.empty();
|
||||||
}
|
}
|
||||||
return errOut;
|
return errOut._retn();
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user