From: eap Date: Thu, 8 Aug 2013 16:45:49 +0000 (+0000) Subject: Suppress SIGSEGV at automatic group creation X-Git-Tag: V7_3_0a1~207 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c589f8585e89a4b96192b004f6b610ccee0d597;p=modules%2Fsmesh.git Suppress SIGSEGV at automatic group creation --- diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index 42207481c..73d5aab8e 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -1723,8 +1723,9 @@ bool SMESHGUI_MeshOp::createSubMesh( QString& theMess, QStringList& theEntryList GEOM::GEOM_Object_wrap aGroupVar = op->CreateGroup(mainGeom, aGroupType); op->UnionList(aGroupVar, aSeq); - if (op->IsDone()) { - aGeomVar = aGroupVar.in(); + if (op->IsDone()) + { + aGeomVar = GEOM::GEOM_Object::_duplicate( aGroupVar.in() ); // publish the GEOM group in study QString aNewGeomGroupName ("Auto_group_for_");