X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_MeshEditor_i.cxx;h=71106151f476f1720fb9a89bbe9b0eccdc21e0f2;hb=effd6e22299c58b7829614ca9f66796a2e1b3dd9;hp=e87f092a24eedb24845e8929c5ed63f03f1f1def;hpb=d9f4b53e489dd5857db264ede6acded7b076c9f1;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index e87f092a2..71106151f 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -3664,7 +3664,7 @@ SMESH_MeshEditor_i::TranslateMakeGroups(const SMESH::smIdType_array& theIDsOfEle << theIDsOfElements << ", " << theVector << " )"; } - return aGroups; + return aGroups ? aGroups : new SMESH::ListOfGroups(); } //======================================================================= @@ -3689,7 +3689,7 @@ SMESH_MeshEditor_i::TranslateObjectMakeGroups(SMESH::SMESH_IDSource_ptr theObjec << theObject << ", " << theVector << " )"; } - return aGroups; + return aGroups ? aGroups : new SMESH::ListOfGroups(); } //======================================================================= @@ -3914,7 +3914,7 @@ SMESH_MeshEditor_i::RotateMakeGroups(const SMESH::smIdType_array& theIDsOfElemen << theAxis << ", " << TVar( theAngle ) << " )"; } - return aGroups; + return aGroups ? aGroups : new SMESH::ListOfGroups(); } //======================================================================= @@ -3941,7 +3941,7 @@ SMESH_MeshEditor_i::RotateObjectMakeGroups(SMESH::SMESH_IDSource_ptr theObject, << theAxis << ", " << TVar( theAngle ) << " )"; } - return aGroups; + return aGroups ? aGroups : new SMESH::ListOfGroups(); } //=======================================================================