From 53393c4445ab377057fdbccc4d08d5369908bdf0 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 28 Jan 2015 17:57:23 +0300 Subject: [PATCH] 22833: [CEA 1346] to extrude a group of faces following the normal of each face Fix SIGSEGV when no groups created --- src/SMESH_I/SMESH_MeshEditor_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } //======================================================================= -- 2.39.2