Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for the bug IPAL22091: Crash by calling context menu on the SMESH presentation
[modules/smesh.git]
/
src
/
SMESH_SWIG
/
SMESH_GroupLyingOnGeom.py
diff --git
a/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py
b/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py
index 63a04efa6bc365b6eead9f738853faca7c9c0b36..c90a3bd8979996f94d85151fca90e4fa058ef8c4 100644
(file)
--- a/
src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py
+++ b/
src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py
@@
-1,5
+1,5
@@
# -*- coding: iso-8859-1 -*-
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-20
08
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-20
10
CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-20,6
+20,8
@@
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+
+import salome
import smesh
smesh.SetCurrentStudy(salome.myStudy)
import smesh
smesh.SetCurrentStudy(salome.myStudy)
@@
-34,6
+36,7
@@
def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
aFilter.SetPredicate(aLyingOnGeom)
anIds = aFilter.GetElementsId(theMesh)
aFilter.SetPredicate(aLyingOnGeom)
anIds = aFilter.GetElementsId(theMesh)
+ aFilterMgr.Destroy()
aGroup = theMesh.CreateGroup(theElemType, theName)
aGroup.Add(anIds)
aGroup = theMesh.CreateGroup(theElemType, theName)
aGroup.Add(anIds)