From 2d9a9b3ef179c62a90bbaab02661b8af01def891 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 6 Apr 2006 13:10:26 +0000 Subject: [PATCH] PAL11994, PAL10455 - delete on references to mesh presentations --- src/VISUGUI/VisuGUI.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()); -- 2.39.2