From: mzn Date: Tue, 28 Mar 2006 14:24:37 +0000 (+0000) Subject: Fix for Bug IPAL9539 (3.0.0 (current2007): incorrect displaying of the geometry). X-Git-Tag: for_sharm~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=858e93fa3b56b9a7e2c6a73c712c466061649e44;p=modules%2Fgui.git Fix for Bug IPAL9539 (3.0.0 (current2007): incorrect displaying of the geometry). --- 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.); } /*!