From 5c9a9bf94086a339c464364b5113edbe4fac3ea9 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 5 Feb 2014 08:20:55 +0000 Subject: [PATCH] 22359: Body Fitting algorithm: grid orientation Fix the destructor --- src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx b/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx index ea861e8ed..eadc34879 100644 --- a/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx @@ -103,15 +103,15 @@ SMESHGUI_MeshEditPreview::~SMESHGUI_MeshEditPreview() { myGrid->Delete(); - myViewWindow->RemoveActor(myPreviewActor); - myPreviewActor->Delete(); - for ( size_t iA = 0; iA < myLabelActors.size(); ++iA ) if ( myLabelActors[iA] ) { myPreviewActor->GetRenderer()->RemoveActor( myLabelActors[iA] ); myLabelActors[iA]->Delete(); } + + myViewWindow->RemoveActor(myPreviewActor); + myPreviewActor->Delete(); } //================================================================================ -- 2.39.2