]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
21680: EDF 2288 SMESH: creation of 0D elements from other elements
authoreap <eap@opencascade.com>
Tue, 23 Oct 2012 12:42:23 +0000 (12:42 +0000)
committereap <eap@opencascade.com>
Tue, 23 Oct 2012 12:42:23 +0000 (12:42 +0000)
  In RemoveGroupWithContents(), make python dump before group removal

src/SMESH_I/SMESH_Mesh_i.cxx

index 721476f831d6885c5f88a1913dd897958c9966d9..4ea10e1e58a0eded019c7ea2064b50e953912106 100644 (file)
@@ -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 << " )";
 }
 
 //================================================================================