]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL22475: TC6.3.0: Cut planes preview ? viewer is not updated
authorouv <ouv@opencascade.com>
Tue, 10 May 2011 10:46:47 +0000 (10:46 +0000)
committerouv <ouv@opencascade.com>
Tue, 10 May 2011 10:46:47 +0000 (10:46 +0000)
src/VISUGUI/VisuGUI_CutPlanesDlg.cxx

index f6e688cf5cbb54554c31c6aec22b20c3f3feed8f..457d228440d33b8e8b80d32af29b71c5f69e8715 100644 (file)
@@ -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();