]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Merge branch 'V7_5_BR'
authorvsr <vsr@opencascade.com>
Mon, 19 Jan 2015 15:10:14 +0000 (18:10 +0300)
committervsr <vsr@opencascade.com>
Mon, 19 Jan 2015 15:10:14 +0000 (18:10 +0300)
src/SalomeApp/SalomeApp_Study.cxx

index ab6166997d6d3e58ccdbaa1433310d69d15368c4..f081af349a2ae8fb8a2d3d5fddbdc2f64ab19734 100644 (file)
@@ -287,14 +287,11 @@ public:
         if ( it != entry2SuitObject.end() )
         {
           suit_obj = it->second;
-          // VSR: object is not removed, since SALOMEDS::SObject is not actually removed,
-          //      only its attributes are cleared;
-          //      thus, the object can be later reused
           suit_obj->updateItem();
-          //SUIT_DataObject* father=suit_obj->parent();
-          //if(father)
-          //  father->removeChild(suit_obj);
-          //entry2SuitObject.erase(it);
+          SUIT_DataObject* father=suit_obj->parent();
+          if(father)
+            father->removeChild(suit_obj);
+          entry2SuitObject.erase(it);
         }
         else
         {