Salome HOME
Fix messages and indentation
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.cxx
index 6cf1f382341ca76351cab7f61b137bd9225f0c4e..0c2778ad5ba3d82f47ccbfc1bff115cc6f2b538f 100644 (file)
@@ -2084,20 +2084,20 @@ void SMESHGUI::OnEditDelete()
         SMESH::RemoveHypothesisOrAlgorithmOnMesh(IObject);
         aStudyBuilder->RemoveObjectWithChildren( SO );
       }
-      else {// default action: remove SObject from the study           
-               // Find Sub-Meshes and Group and delete corresopning visual objects and actors
-               _PTR(ChildIterator) it1 = aStudy->NewChildIterator(SO);
-               for (it1->InitEx(false); it1->More(); it1->Next()) {
-                 _PTR(SObject) SObj = it1->Value();
-                 if (!SObj) continue;
-                 if (SObj->FindAttribute(anAttr, "AttributeIOR")) {
-                       SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow(SMESH::SObjectToObject(SObj));
-                       SMESH::SMESH_subMesh_var   aSubMesh = SMESH::SMESH_subMesh::_narrow(SMESH::SObjectToObject(SObj));
-                       if (!aGroup->_is_nil() || !aSubMesh->_is_nil()) {
-                         SMESH::RemoveVisualObjectWithActors(SObj->GetID().c_str(), true);
-                       }
-                 }
-               }
+      else {// default action: remove SObject from the study
+        // Find Sub-Meshes and Group and delete corresopning visual objects and actors
+        _PTR(ChildIterator) it1 = aStudy->NewChildIterator(SO);
+        for (it1->InitEx(false); it1->More(); it1->Next()) {
+          _PTR(SObject) SObj = it1->Value();
+          if (!SObj) continue;
+          if (SObj->FindAttribute(anAttr, "AttributeIOR")) {
+            SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow(SMESH::SObjectToObject(SObj));
+            SMESH::SMESH_subMesh_var   aSubMesh = SMESH::SMESH_subMesh::_narrow(SMESH::SObjectToObject(SObj));
+            if (!aGroup->_is_nil() || !aSubMesh->_is_nil()) {
+              SMESH::RemoveVisualObjectWithActors(SObj->GetID().c_str(), true);
+            }
+          }
+        }
         // san - it's no use opening a transaction here until UNDO/REDO is provided in SMESH
         //SUIT_Operation *op = new SALOMEGUI_ImportOperation(myActiveStudy);
         //op->start();