Salome HOME
0019939: EDF 762 SMESH : Definition of groups from other existing groups
authorsln <sln@opencascade.com>
Wed, 26 Nov 2008 15:30:36 +0000 (15:30 +0000)
committersln <sln@opencascade.com>
Wed, 26 Nov 2008 15:30:36 +0000 (15:30 +0000)
onAdd() method is fixed in order to provide valid reaction on group created on geometry

src/SMESHGUI/SMESHGUI_GroupDlg.cxx

index 19af7e001c2d35d50e6668ab3d1438bf22b2a12c..884373dcfa66d5837de45830dfd3654942872244 100644 (file)
@@ -1563,8 +1563,8 @@ void SMESHGUI_GroupDlg::onAdd()
 
     SALOME_ListIteratorOfListIO anIt (aList);
     for ( ; anIt.More(); anIt.Next()) {
-      SMESH::SMESH_Group_var aGroup =
-        SMESH::IObjectToInterface<SMESH::SMESH_Group>(anIt.Value());
+      SMESH::SMESH_GroupBase_var aGroup =
+        SMESH::IObjectToInterface<SMESH::SMESH_GroupBase>(anIt.Value());
       if (!aGroup->_is_nil()) {
        // check if mesh is the same
        if (aGroup->GetType() == aType && aGroup->GetMesh()->GetId() == myMesh->GetId()) {