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:
0bc4546
)
IPAL21464: fix SIGSEGV in "Create Group" dialog box
author
vsr
<vsr@opencascade.com>
Mon, 16 Nov 2009 08:37:18 +0000
(08:37 +0000)
committer
vsr
<vsr@opencascade.com>
Mon, 16 Nov 2009 08:37:18 +0000
(08:37 +0000)
src/Controls/SMESH_Controls.cxx
patch
|
blob
|
history
diff --git
a/src/Controls/SMESH_Controls.cxx
b/src/Controls/SMESH_Controls.cxx
index b83c7ee11f70f3046403cebee2ae0190c5718632..a9a3df7f88429a8dee179c6249490b2f9c5fe418 100644
(file)
--- a/
src/Controls/SMESH_Controls.cxx
+++ b/
src/Controls/SMESH_Controls.cxx
@@
-1938,8
+1938,10
@@
bool ElemGeomType::IsSatisfy( long theId )
{
if (!myMesh) return false;
const SMDS_MeshElement* anElem = myMesh->FindElement( theId );
+ if ( !anElem )
+ return false;
const SMDSAbs_ElementType anElemType = anElem->GetType();
- if (
!anElem || (myType != SMDSAbs_All && anElemType != myType)
)
+ if (
myType != SMDSAbs_All && anElemType != myType
)
return false;
const int aNbNode = anElem->NbNodes();
bool isOk = false;