From 7e6191aa6a7700f4f7b01f5b9ed1b660aecb4afa Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 1 Mar 2007 07:32:41 +0000 Subject: [PATCH] PAL13460 (PAL EDF 301 force the mesh to go through a point) fix Transform() --- src/SMESH/SMESH_MeshEditor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {