From: dmv Date: Fri, 23 Jan 2009 13:15:01 +0000 (+0000) Subject: PAL7530 Incorrect coordinates of sphere's points are displaying in the "Point Coordin... X-Git-Tag: V4_1_5rc1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54b0cd335e5c9a6a7f7b5731d38767021abc9fb8;p=modules%2Fgeom.git PAL7530 Incorrect coordinates of sphere's points are displaying in the "Point Coordinates" --- diff --git a/src/DlgRef/DlgRef_SpinBox.cxx b/src/DlgRef/DlgRef_SpinBox.cxx index 65979c5c7..6e716b2be 100644 --- a/src/DlgRef/DlgRef_SpinBox.cxx +++ b/src/DlgRef/DlgRef_SpinBox.cxx @@ -106,6 +106,9 @@ void DlgRef_SpinBox::RangeStepAndValidator(double min, double max,double step, QString DlgRef_SpinBox::PrintDoubleValue (double theValue, int thePrecision) { const double prec = 1e-12; + + if ( abs(theValue) < thePrecision) + return "0"; QString aRes; aRes.setNum(theValue, 'g', thePrecision);