From: vsr Date: Wed, 15 Jul 2009 13:49:40 +0000 (+0000) Subject: Issue 0020400: EDF 1057 GEOM: Point coordinate operation gives (0,0,0) X-Git-Tag: V4_1_0_maintainance_FINAL~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0fb77d71113e19d063f1a8422f53476f8a15678e;p=modules%2Fgeom.git Issue 0020400: EDF 1057 GEOM: Point coordinate operation gives (0,0,0) Additional fix for small values (abs(val)<1) --- diff --git a/src/DlgRef/DlgRef_SpinBox.cxx b/src/DlgRef/DlgRef_SpinBox.cxx index 7106c74d2..aeefdab60 100644 --- a/src/DlgRef/DlgRef_SpinBox.cxx +++ b/src/DlgRef/DlgRef_SpinBox.cxx @@ -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;