22359: Body Fitting algorithm: grid orientation

Fix the destructor
This commit is contained in:
eap 2014-02-05 08:20:55 +00:00
parent fce720f2d2
commit 5c9a9bf940

View File

@ -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();
}
//================================================================================