]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #819: Update depth after FitAll
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 11 Sep 2015 16:52:35 +0000 (19:52 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 11 Sep 2015 16:52:49 +0000 (19:52 +0300)
src/NewGeom/NewGeom_SalomeViewer.cpp
src/XGUI/XGUI_ViewerProxy.cpp

index a9d0c382dd65c5f0e6964b19308071d3b0e7a627..67d2946cb64d58c7fa62d7a9b841a2578190a19b 100644 (file)
@@ -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();
     }
   }
 }
index 345efbe077f98fcf03dbc081845174c29d42bb80..d8f492e74d8d4b43c85f46a1f985538e9ffa1bde 100644 (file)
@@ -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();
   }
 }