]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13460 (PAL EDF 301 force the mesh to go through a point)
authoreap <eap@opencascade.com>
Thu, 1 Mar 2007 07:32:41 +0000 (07:32 +0000)
committereap <eap@opencascade.com>
Thu, 1 Mar 2007 07:32:41 +0000 (07:32 +0000)
   fix Transform()

src/SMESH/SMESH_MeshEditor.cxx

index eccd73600dc0c08d225fe911eef8f81f7e14aa26..c311cf675405280458e1239b71532c99832059ff 100644 (file)
@@ -4295,8 +4295,8 @@ void SMESH_MeshEditor::Transform (TIDSortedElemSet & theElems,
       continue; // not all nodes transformed
 
     if ( theCopy ) {
-      if ( SMDS_MeshElement* elem = AddElement( nodes, elem->GetType(), elem->IsPoly() ))
-        myLastCreatedElems.Append( elem );
+      if ( SMDS_MeshElement* copy = AddElement( nodes, elem->GetType(), elem->IsPoly() ))
+        myLastCreatedElems.Append( copy );
     }
     else
     {