]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
NPAL18060: EDF615: Salome crash when it try to create a clipping plane.
authorjfa <jfa@opencascade.com>
Thu, 29 Nov 2007 12:31:52 +0000 (12:31 +0000)
committerjfa <jfa@opencascade.com>
Thu, 29 Nov 2007 12:31:52 +0000 (12:31 +0000)
src/VISU_I/VISU_Result_i.cc

index 3bc4f8f30ae3809ea9d47003dd7a004f12d70371..b9bf3d80d6ee4151437f9dd1e74f9b71ad90c3b4 100644 (file)
@@ -1484,7 +1484,7 @@ VISU::Result_i
          // axis direction
          if ( !axesComputed ) {
            gp_Vec dir( p0, p );
-           if ( dir.SquareMagnitude() <= DBL_MIN ) {
+           if ( dir.SquareMagnitude() <= gp::Resolution() ) {
              break;
            }
            axDirs[ iAx ] = dir;