From: ouv Date: Tue, 10 May 2011 10:46:47 +0000 (+0000) Subject: Bug IPAL22475: TC6.3.0: Cut planes preview ? viewer is not updated X-Git-Tag: V6_3_BR20110512~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39f381ae47526234268bbf6c47925e6219835db4;p=modules%2Fvisu.git Bug IPAL22475: TC6.3.0: Cut planes preview ? viewer is not updated --- diff --git a/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx b/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx index f6e688cf..457d2284 100644 --- a/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx @@ -749,9 +749,10 @@ void VisuGUI_CutPlanesPane::onPreviewCheck (bool thePreview) storeToPrsObject(myCutPlanes); myCutPlanes->GetPipeLine()->Update(); createPlanes(); - if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false)) { - vf->onFitAll(); - } + if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false)) + vf->onFitAll(); // Repaint() is called inside + else + vf->Repaint(); } else { deletePlanes(); vf->Repaint();