From b24d98bec6ffa0d49f448906609acdda18920ae8 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 29 Nov 2007 12:31:52 +0000 Subject: [PATCH] NPAL18060: EDF615: Salome crash when it try to create a clipping plane. --- src/VISU_I/VISU_Result_i.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 3bc4f8f3..b9bf3d80 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -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; -- 2.39.2