From: jfa Date: Thu, 29 Nov 2007 12:31:52 +0000 (+0000) Subject: NPAL18060: EDF615: Salome crash when it try to create a clipping plane. X-Git-Tag: mergefrom_MERGE_MULTIPR_EVOLUTION_07-Dec-07~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b24d98bec6ffa0d49f448906609acdda18920ae8;p=modules%2Fvisu.git NPAL18060: EDF615: Salome crash when it try to create a clipping plane. --- 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;