From: vsv Date: Fri, 11 Sep 2015 16:52:35 +0000 (+0300) Subject: Issue #819: Update depth after FitAll X-Git-Tag: V_1.4.0_beta4~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b3d813d1c61b6687e841228fef16061fbbedc26a;p=modules%2Fshaper.git Issue #819: Update depth after FitAll --- 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(); } }