Salome HOME
Issue 0020400: EDF 1057 GEOM: Point coordinate operation gives (0,0,0)
authorvsr <vsr@opencascade.com>
Wed, 15 Jul 2009 13:49:40 +0000 (13:49 +0000)
committervsr <vsr@opencascade.com>
Wed, 15 Jul 2009 13:49:40 +0000 (13:49 +0000)
Additional fix for small values (abs(val)<1)

src/DlgRef/DlgRef_SpinBox.cxx

index 7106c74d2b1d99a334bd06330d4daa73ca58d77f..aeefdab600f1e43ff385288b40e358fbb16a7e93 100644 (file)
@@ -107,7 +107,7 @@ QString DlgRef_SpinBox::PrintDoubleValue (double theValue, int thePrecision)
 {
   const double prec = 1e-12;
   
-  if ( abs(theValue) < prec )
+  if ( fabs(theValue) < prec )
     return "0";
 
   QString aRes;