]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for the issue "21203: EDF 1797 SMESH: SIGSEGV with move node on a Mesh with 0D...
authorrnv <rnv@opencascade.com>
Tue, 1 Mar 2011 09:35:50 +0000 (09:35 +0000)
committerrnv <rnv@opencascade.com>
Tue, 1 Mar 2011 09:35:50 +0000 (09:35 +0000)
src/SMESH/SMESH_MeshEditor.cxx

index e1756d3e1df46c0da2e2390de9585f100b268181..475b6df5d64a187abb59e44328cf9a0f02f0b860 100644 (file)
@@ -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 )
     {