From: rkv Date: Tue, 14 Nov 2006 10:27:24 +0000 (+0000) Subject: SVTK_Viewer::EraseAll for call with parameter "true" is fixed to remove a renderer... X-Git-Tag: For_CTH_V1_2a~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b9be249d43d69889183b34119ebc0032dbb3dff0;p=modules%2Fgui.git SVTK_Viewer::EraseAll for call with parameter "true" is fixed to remove a renderer from an actor and not vice versa. --- diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index 0624c7d47..3128c1678 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -410,7 +410,8 @@ SVTK_Viewer //if(!anObj.IsNull() && anObj->hasEntry() && aStudy) // ToolsGUI::SetVisibility(aStudy,anObj->getEntry(),false,this); if(forced) - aRenderer->RemoveActor(anAct); + // RKV : aRenderer->RemoveActor(anAct); + anAct->RemoveFromRender(aRenderer); // RKV else{ // just erase actor anAct->SetVisibility( false );