mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
IPAL21464: fix SIGSEGV in "Create Group" dialog box
This commit is contained in:
parent
0bc45464bc
commit
7186694f11
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user