From 0fb77d71113e19d063f1a8422f53476f8a15678e Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 15 Jul 2009 13:49:40 +0000 Subject: [PATCH] Issue 0020400: EDF 1057 GEOM: Point coordinate operation gives (0,0,0) Additional fix for small values (abs(val)<1) --- src/DlgRef/DlgRef_SpinBox.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2