From: eap Date: Thu, 1 Mar 2007 07:32:41 +0000 (+0000) Subject: PAL13460 (PAL EDF 301 force the mesh to go through a point) X-Git-Tag: V3_2_6a1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e6191aa6a7700f4f7b01f5b9ed1b660aecb4afa;p=modules%2Fsmesh.git PAL13460 (PAL EDF 301 force the mesh to go through a point) fix Transform() --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index eccd73600..c311cf675 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -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 {