From cc1538a74a5a076fbd4f698a2bebba672de0cd2b Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 28 Apr 2006 05:56:41 +0000 Subject: [PATCH] Bug IPAL11962: Fix for - the preview is still in the viewer. --- src/VISUGUI/VisuGUI_CutPlanesDlg.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx b/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx index 3d6989a5..85bc997f 100644 --- a/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx @@ -420,8 +420,12 @@ void VisuGUI_CutPlanesPane::onValueChanged (int theRow, int theCol) void VisuGUI_CutPlanesPane::deletePlanes() { if (myPreviewActor == 0) return; - if (SVTK_ViewWindow* vf = VISU::GetActiveViewWindow()) - vf->RemoveActor(myPreviewActor); + vtkRenderer* aRend = myPreviewActor->GetRenderer(); + if(aRend) + myPreviewActor->RemoveFromRender(aRend); +// Bug IPAL11962: preview is still in the viewer, if viewer not active. +// if (SVTK_ViewWindow* vf = VISU::GetActiveViewWindow()) +// vf->RemoveActor(myPreviewActor); myPreviewActor->Delete(); myPreviewActor = 0; } -- 2.39.2