From e3b7273c1688d7be34e35d3cc5a27569715dfddc Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 7 Oct 2009 12:26:26 +0000 Subject: [PATCH] 0020501: EDF 1098 SMESH: Display only groups, edit a group: can't select face from other group --- src/SMESHGUI/SMESHGUI_GroupDlg.cxx | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index 00c3321da..162b94001 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -1303,12 +1303,21 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged() } if (myActorsList.count() == 0) { - if (!myGroup->_is_nil()) - myActorsList.append( SMESH::FindActorByObject(myGroup) ); - else if(!myGroupOnGeom->_is_nil()) - myActorsList.append( SMESH::FindActorByObject(myGroupOnGeom) ); - else - myActorsList.append( SMESH::FindActorByObject(myMesh) ); + if (!myGroup->_is_nil()) { + SMESH_Actor* anActor = SMESH::FindActorByObject(myGroup); + if ( anActor ) + myActorsList.append( anActor ); + } + else if(!myGroupOnGeom->_is_nil()) { + SMESH_Actor* anActor = SMESH::FindActorByObject(myGroupOnGeom); + if ( anActor ) + myActorsList.append( anActor ); + } + else { + SMESH_Actor* anActor = SMESH::FindActorByObject( myMesh ); + if ( anActor ) + myActorsList.append( anActor ); + } } // somehow, if we display the mesh, while selecting from another actor, -- 2.39.2