From: dmv Date: Wed, 7 Oct 2009 12:26:26 +0000 (+0000) Subject: 0020501: EDF 1098 SMESH: Display only groups, edit a group: can't select face from... X-Git-Tag: V4_1_0_maintainance_FINAL~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3b7273c1688d7be34e35d3cc5a27569715dfddc;p=modules%2Fsmesh.git 0020501: EDF 1098 SMESH: Display only groups, edit a group: can't select face from other group --- 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,