From: vsv Date: Fri, 18 Sep 2015 14:37:28 +0000 (+0300) Subject: Issue #1002: Fit depth of viewer X-Git-Tag: V_1.4.0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a906e22a06cca8064975af0b14fcff711d5fa4a;p=modules%2Fshaper.git Issue #1002: Fit depth of viewer --- diff --git a/src/NewGeom/NewGeom_SalomeViewer.cpp b/src/NewGeom/NewGeom_SalomeViewer.cpp index 87a81a625..0494aeec9 100644 --- a/src/NewGeom/NewGeom_SalomeViewer.cpp +++ b/src/NewGeom/NewGeom_SalomeViewer.cpp @@ -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 diff --git a/src/XGUI/XGUI_ViewerProxy.cpp b/src/XGUI/XGUI_ViewerProxy.cpp index d8f492e74..b18cff14a 100644 --- a/src/XGUI/XGUI_ViewerProxy.cpp +++ b/src/XGUI/XGUI_ViewerProxy.cpp @@ -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