From c6a711c1758bde32f4296dc07db8428ed2b5b536 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 18 Jan 2011 12:54:18 +0000 Subject: [PATCH] fix SetPosition() --- src/SMDS/SMDS_MeshNode.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SMDS/SMDS_MeshNode.cxx b/src/SMDS/SMDS_MeshNode.cxx index 763dfd443..07f1d8d21 100644 --- a/src/SMDS/SMDS_MeshNode.cxx +++ b/src/SMDS/SMDS_MeshNode.cxx @@ -113,7 +113,9 @@ void SMDS_MeshNode::Print(ostream & OS) const void SMDS_MeshNode::SetPosition(const SMDS_PositionPtr& aPos) { - if ( myPosition && myPosition != aPos ) + if ( myPosition && + myPosition != SMDS_SpacePosition::originSpacePosition() && + myPosition != aPos ) delete myPosition; myPosition = aPos; } -- 2.39.2