]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
PAL7530 Incorrect coordinates of sphere's points are displaying in the "Point Coordin...
authordmv <dmv@opencascade.com>
Fri, 23 Jan 2009 13:15:01 +0000 (13:15 +0000)
committerdmv <dmv@opencascade.com>
Fri, 23 Jan 2009 13:15:01 +0000 (13:15 +0000)
src/DlgRef/DlgRef_SpinBox.cxx

index 65979c5c782af491f0cf69cde0f792b5d5e95933..6e716b2be5385af3a5dd6eaa0b1c3f372c3b1cde 100644 (file)
@@ -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);