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:
67c4262
)
Fix for #19201: Can't select a SHAPER result to create a group on geometry
author
mpv
<mikhail.ponikarov@opencascade.com>
Thu, 28 May 2020 13:44:33 +0000
(16:44 +0300)
committer
mpv
<mikhail.ponikarov@opencascade.com>
Thu, 28 May 2020 13:44:33 +0000
(16:44 +0300)
src/SMESHGUI/SMESHGUI_GroupDlg.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx
b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx
index 5d33b479330ba498ca5f06d6402549de7428ce96..21b33c443b7e5022196c3a44633009fa7374f4a0 100644
(file)
--- a/
src/SMESHGUI/SMESHGUI_GroupDlg.cxx
+++ b/
src/SMESHGUI/SMESHGUI_GroupDlg.cxx
@@
-1402,9
+1402,11
@@
void SMESHGUI_GroupDlg::onObjectSelectionChanged()
SALOME_ListIteratorOfListIO anIt (aList);
for (; anIt.More(); anIt.Next())
{
- aGeomGroup = GEOMBase::ConvertIOinGEOMObject(anIt.Value());
-
+ CORBA::Object_var aGroupObj = SMESH::IObjectToObject(anIt.Value());
+ if (CORBA::is_nil(aGroupObj))
+ continue;
// Check if the object is a geometry group
+ aGeomGroup = GEOM::GEOM_Object::_narrow(aGroupObj);
if (CORBA::is_nil(aGeomGroup))
continue;