From 858e93fa3b56b9a7e2c6a73c712c466061649e44 Mon Sep 17 00:00:00 2001 From: mzn Date: Tue, 28 Mar 2006 14:24:37 +0000 Subject: [PATCH] Fix for Bug IPAL9539 (3.0.0 (current2007): incorrect displaying of the geometry). --- src/OCCViewer/OCCViewer_ViewPort3d.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index badfe3cf3..2ab376022 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -348,6 +348,8 @@ void OCCViewer_ViewPort3d::endRotation() if ( !myDegenerated ) activeView()->SetDegenerateModeOff(); activeView()->ZFitAll(1.); + activeView()->SetZSize(0.); + activeView()->Update(); } } @@ -400,6 +402,7 @@ void OCCViewer_ViewPort3d::fitAll( bool keepScale, bool withZ, bool upd ) Standard_Real margin = 0.01; activeView()->FitAll( margin, withZ, upd ); + activeView()->SetZSize(0.); } /*! -- 2.39.2