From 12cbac91e8794ec3eac1cc598976fdcc0855aa91 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 23 Oct 2012 12:42:23 +0000 Subject: [PATCH] 21680: EDF 2288 SMESH: creation of 0D elements from other elements In RemoveGroupWithContents(), make python dump before group removal --- src/SMESH_I/SMESH_Mesh_i.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 721476f83..4ea10e1e5 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -1064,11 +1064,11 @@ void SMESH_Mesh_i::RemoveGroupWithContents( SMESH::SMESH_GroupBase_ptr theGroup else aMeshEditor->RemoveElements( anIds ); + // Update Python script (theGroup must be alive for this) + pyDump << _this() << ".RemoveGroupWithContents( " << theGroup << " )"; + // Remove group RemoveGroup( theGroup ); - - // Update Python script - pyDump << _this() << ".RemoveGroupWithContents( " << theGroup << " )"; } //================================================================================ -- 2.39.2