Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4bf7b0
)
fix FindFace() after the previous integration
author
eap
<eap@opencascade.com>
Wed, 10 Mar 2010 13:21:56 +0000
(13:21 +0000)
committer
eap
<eap@opencascade.com>
Wed, 10 Mar 2010 13:21:56 +0000
(13:21 +0000)
src/SMDS/SMDS_Mesh.cxx
patch
|
blob
|
history
diff --git
a/src/SMDS/SMDS_Mesh.cxx
b/src/SMDS/SMDS_Mesh.cxx
index a50532de66869fd54d74915e6b60d575f81de4fa..d6235a3b7c59555753ae22abfd4216380ea3e7d8 100644
(file)
--- a/
src/SMDS/SMDS_Mesh.cxx
+++ b/
src/SMDS/SMDS_Mesh.cxx
@@
-1782,10
+1782,11
@@
const SMDS_MeshFace* SMDS_Mesh::FindFace (const std::vector<const SMDS_MeshNode
while (itF->more()) {
const SMDS_MeshElement* f = itF->next();
if ( f->NbNodes() == nodes.size() ) {
- for ( int i = 1; i < nodes.size(); ++ i )
+ for ( int i = 1;
f &&
i < nodes.size(); ++ i )
if ( f->GetNodeIndex( nodes[ i ]) < 0 )
- return NULL;
- return static_cast<const SMDS_MeshFace *> (f);
+ f = 0;
+ if ( f )
+ return static_cast<const SMDS_MeshFace *> (f);
}
}
}