From: asl Date: Thu, 6 Apr 2006 13:10:26 +0000 (+0000) Subject: PAL11994, PAL10455 - delete on references to mesh presentations X-Git-Tag: mergefrom_BR2_Mandriva_2006_64_07Apr06~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d9a9b3ef179c62a90bbaab02661b8af01def891;p=modules%2Fvisu.git PAL11994, PAL10455 - delete on references to mesh presentations --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index d203d433..57ecfe7a 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -1143,7 +1143,12 @@ OnDeleteObjects() CORBA::Object_var aCorbaObj = VISU::GetSelectedObj(anAppStudy, aRefObj->GetID()); if (!CORBA::is_nil(aCorbaObj)) { VISU::Base_var aVisuObj = VISU::Base::_narrow(aCorbaObj); - if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TCURVE) { + if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TMESH) + { + DeleteSObject(this, aCStudy, aRefObj); + UpdateObjBrowser(this, true, aRefObj); + } + else if (!CORBA::is_nil(aVisuObj) && aVisuObj->GetType() == VISU::TCURVE) { VISU::Curve_ptr aCurve = VISU::Curve::_narrow(aVisuObj); _PTR(SObject) aParentSO = aSObject->GetFather(); aCorbaObj = VISU::GetSelectedObj(anAppStudy, aParentSO->GetID());