From: enk Date: Fri, 28 Apr 2006 05:56:41 +0000 (+0000) Subject: Bug IPAL11962: X-Git-Tag: mergeto_trunk_06May06~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cc1538a74a5a076fbd4f698a2bebba672de0cd2b;p=modules%2Fvisu.git Bug IPAL11962: Fix for - the preview is still in the viewer. --- 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; }