From: dmv Date: Thu, 10 Dec 2009 14:15:54 +0000 (+0000) Subject: IPAL21354 Deleting of referenced father object doesn't work. X-Git-Tag: V6_0_0~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=051a65748ecbc0bd52e838f9fd618eaa073f650a;p=modules%2Fgeom.git IPAL21354 Deleting of referenced father object doesn't work. --- diff --git a/src/GEOMToolsGUI/GEOMToolsGUI.cxx b/src/GEOMToolsGUI/GEOMToolsGUI.cxx index 521e92e1b..8aa0fd14b 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI.cxx @@ -490,8 +490,11 @@ void GEOMToolsGUI::OnEditDelete() // check if object is reference _PTR(SObject) refobj; - if ( obj && obj->ReferencedObject( refobj ) ) - continue; // skip references + if ( obj && obj->ReferencedObject( refobj ) ) { + // get the main object by reference IPAL 21354 + obj = refobj; + entry = obj->GetID().c_str(); + } // ... QString aName = obj->GetName().c_str(); if ( entry == geomComp ) {