From 80670edb517edba2dd23ae761eb0b2c076a2df03 Mon Sep 17 00:00:00 2001 From: mpa Date: Fri, 26 Dec 2014 09:29:16 +0300 Subject: [PATCH] 0022831: EDF 9571 GEOM: Bad order in the OB after a "Reduce study" --- src/SalomeApp/SalomeApp_Study.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 293488936..cf1d7d624 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -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 { -- 2.39.2