From: rnv Date: Tue, 1 Mar 2011 09:35:50 +0000 (+0000) Subject: Fix for the issue "21203: EDF 1797 SMESH: SIGSEGV with move node on a Mesh with 0D... X-Git-Tag: StartingPortingMED3~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fa15bee5e15c81e58d63304dd368f268883e6b25;p=modules%2Fsmesh.git Fix for the issue "21203: EDF 1797 SMESH: SIGSEGV with move node on a Mesh with 0D elements" --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index e1756d3e1..475b6df5d 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -2681,6 +2681,9 @@ void SMESH_MeshEditor::GetLinkedNodes( const SMDS_MeshNode* theNode, while ( elemIt->more() ) { const SMDS_MeshElement* elem = elemIt->next(); + if(elem->GetType() == SMDSAbs_0DElement) + continue; + SMDS_ElemIteratorPtr nodeIt = elem->nodesIterator(); if ( elem->GetType() == SMDSAbs_Volume ) {