fix SetPosition()

This commit is contained in:
eap 2011-01-18 12:54:18 +00:00
parent c01468d0be
commit c6a711c175

View File

@ -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;
}