From: eap Date: Wed, 28 Jan 2015 14:57:23 +0000 (+0300) Subject: 22833: [CEA 1346] to extrude a group of faces following the normal of each face X-Git-Tag: V7_6_0a1~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53393c4445ab377057fdbccc4d08d5369908bdf0;p=modules%2Fsmesh.git 22833: [CEA 1346] to extrude a group of faces following the normal of each face Fix SIGSEGV when no groups created --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 39a9d25d6..a753f0b59 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -3126,7 +3126,7 @@ SMESH_MeshEditor_i::ExtrusionByNormal(SMESH::SMESH_IDSource_ptr object, << ", " << dim << " )"; } - return aGroups; + return aGroups ? aGroups : new SMESH::ListOfGroups; } //=======================================================================