mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 23:54:16 +05:00
0019939: EDF 762 SMESH : Definition of groups from other existing groups
onAdd() method is fixed in order to provide valid reaction on group created on geometry
This commit is contained in:
parent
634461f414
commit
4afe057463
@ -1563,8 +1563,8 @@ void SMESHGUI_GroupDlg::onAdd()
|
|||||||
|
|
||||||
SALOME_ListIteratorOfListIO anIt (aList);
|
SALOME_ListIteratorOfListIO anIt (aList);
|
||||||
for ( ; anIt.More(); anIt.Next()) {
|
for ( ; anIt.More(); anIt.Next()) {
|
||||||
SMESH::SMESH_Group_var aGroup =
|
SMESH::SMESH_GroupBase_var aGroup =
|
||||||
SMESH::IObjectToInterface<SMESH::SMESH_Group>(anIt.Value());
|
SMESH::IObjectToInterface<SMESH::SMESH_GroupBase>(anIt.Value());
|
||||||
if (!aGroup->_is_nil()) {
|
if (!aGroup->_is_nil()) {
|
||||||
// check if mesh is the same
|
// check if mesh is the same
|
||||||
if (aGroup->GetType() == aType && aGroup->GetMesh()->GetId() == myMesh->GetId()) {
|
if (aGroup->GetType() == aType && aGroup->GetMesh()->GetId() == myMesh->GetId()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user