]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1002: Fit depth of viewer
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 18 Sep 2015 14:37:28 +0000 (17:37 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 18 Sep 2015 14:37:40 +0000 (17:37 +0300)
src/NewGeom/NewGeom_SalomeViewer.cpp
src/XGUI/XGUI_ViewerProxy.cpp

index 87a81a6255780fc97ec1548b806cd78a067b3bdf..0494aeec96a58da2715bab9d36ab4e87c6a32d52 100644 (file)
@@ -396,5 +396,6 @@ void NewGeom_SalomeViewer::Zfitall()
   if (aView) {
     OCCViewer_ViewWindow* aWnd = aView->getView(OCCViewer_ViewFrame::MAIN_VIEW);
     aWnd->getViewPort()->getView()->ZFitAll();
+    aWnd->getViewPort()->getView()->DepthFitAll();
   }
 }
\ No newline at end of file
index d8f492e74d8d4b43c85f46a1f985538e9ffa1bde..b18cff14aec60199dbfc2dd097653f174c83ba1b 100644 (file)
@@ -330,7 +330,9 @@ void XGUI_ViewerProxy::Zfitall()
   } else {
     AppElements_Viewer* aViewer = myWorkshop->mainWindow()->viewer();
     AppElements_ViewWindow* aView = aViewer->activeViewWindow();
-    if (aView)
+    if (aView) {
       aView->v3dView()->ZFitAll();
+      aView->v3dView()->DepthFitAll();
+    }
   }
 }
\ No newline at end of file