mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
Fix for #19201: Can't select a SHAPER result to create a group on geometry
This commit is contained in:
parent
67c4262d23
commit
593c663f2d
@ -1402,9 +1402,11 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
|
|||||||
SALOME_ListIteratorOfListIO anIt (aList);
|
SALOME_ListIteratorOfListIO anIt (aList);
|
||||||
for (; anIt.More(); anIt.Next())
|
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
|
// Check if the object is a geometry group
|
||||||
|
aGeomGroup = GEOM::GEOM_Object::_narrow(aGroupObj);
|
||||||
if (CORBA::is_nil(aGeomGroup))
|
if (CORBA::is_nil(aGeomGroup))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user