From b3d813d1c61b6687e841228fef16061fbbedc26a Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 11 Sep 2015 19:52:35 +0300 Subject: [PATCH] Issue #819: Update depth after FitAll --- src/NewGeom/NewGeom_SalomeViewer.cpp | 1 + src/XGUI/XGUI_ViewerProxy.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NewGeom/NewGeom_SalomeViewer.cpp b/src/NewGeom/NewGeom_SalomeViewer.cpp index a9d0c382d..67d2946cb 100644 --- a/src/NewGeom/NewGeom_SalomeViewer.cpp +++ b/src/NewGeom/NewGeom_SalomeViewer.cpp @@ -300,6 +300,7 @@ void NewGeom_SalomeViewer::setViewProjection(double theX, double theY, double th aView3d->SetTwist( theTwist ); aView3d->FitAll(0.01, true); aView3d->SetZSize(0.); + aView3d->DepthFitAll(); } } } diff --git a/src/XGUI/XGUI_ViewerProxy.cpp b/src/XGUI/XGUI_ViewerProxy.cpp index 345efbe07..d8f492e74 100644 --- a/src/XGUI/XGUI_ViewerProxy.cpp +++ b/src/XGUI/XGUI_ViewerProxy.cpp @@ -55,6 +55,7 @@ void XGUI_ViewerProxy::setViewProjection(double theX, double theY, double theZ, aView3d->SetTwist( theTwist ); aView3d->FitAll(0.01, true); aView3d->SetZSize(0.); + aView3d->DepthFitAll(); } } -- 2.30.2