]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0022831: EDF 9571 GEOM: Bad order in the OB after a "Reduce study"
authormpa <mpa@opencascade.com>
Fri, 26 Dec 2014 06:29:16 +0000 (09:29 +0300)
committermpa <mpa@opencascade.com>
Fri, 26 Dec 2014 06:29:16 +0000 (09:29 +0300)
src/SalomeApp/SalomeApp_Study.cxx

index 2934889368ae8446a0f7c327f85641c628322024..cf1d7d624fc3c5388587653741a6813be3ba2a65 100644 (file)
@@ -288,14 +288,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
         {