Suppress SIGSEGV at automatic group creation

This commit is contained in:
eap 2013-08-08 16:45:49 +00:00
parent fa3a593199
commit 8c589f8585

View File

@ -1723,8 +1723,9 @@ bool SMESHGUI_MeshOp::createSubMesh( QString& theMess, QStringList& theEntryList
GEOM::GEOM_Object_wrap aGroupVar = op->CreateGroup(mainGeom, aGroupType); GEOM::GEOM_Object_wrap aGroupVar = op->CreateGroup(mainGeom, aGroupType);
op->UnionList(aGroupVar, aSeq); op->UnionList(aGroupVar, aSeq);
if (op->IsDone()) { if (op->IsDone())
aGeomVar = aGroupVar.in(); {
aGeomVar = GEOM::GEOM_Object::_duplicate( aGroupVar.in() );
// publish the GEOM group in study // publish the GEOM group in study
QString aNewGeomGroupName ("Auto_group_for_"); QString aNewGeomGroupName ("Auto_group_for_");