Salome HOME
23269: Meshing a composite block with IJK
[modules/smesh.git] / src / SMESH_I / SMESH_Gen_i_1.cxx
index 30ef9e5c646f0a4cc84a465d185d85aa50c74ef7..af12566d8698d440e465f1e71397d13257ec5353 100644 (file)
@@ -771,8 +771,7 @@ SALOMEDS::SObject_ptr SMESH_Gen_i::PublishGroup (SALOMEDS::Study_ptr    theStudy
         SetName( aRootSO, aRootNames[aType] );
 
       // Add new group to corresponding sub-tree
-      SMESH::array_of_ElementType_var elemTypes = theGroup->GetTypes();
-      int isEmpty = ( elemTypes->length() == 0 );
+      int isEmpty = false;
       std::string pm[2] = { "ICON_SMESH_TREE_GROUP", "ICON_SMESH_TREE_MESH_WARN" };
       if ( SMESH::DownCast< SMESH_GroupOnFilter_i* > ( theGroup ))
       {