]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Bug IPAL9539 (3.0.0 (current2007): incorrect displaying of the geometry).
authormzn <mzn@opencascade.com>
Tue, 28 Mar 2006 14:24:37 +0000 (14:24 +0000)
committermzn <mzn@opencascade.com>
Tue, 28 Mar 2006 14:24:37 +0000 (14:24 +0000)
src/OCCViewer/OCCViewer_ViewPort3d.cxx

index badfe3cf301eb5465b96f03651ca25f46231e4e5..2ab376022242040f176ef866ab675f996478add9 100755 (executable)
@@ -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.);
 }
 
 /*!