]> 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:14:12 +0000 (13:14 +0000)
committerdmv <dmv@opencascade.com>
Fri, 23 Jan 2009 13:14:12 +0000 (13:14 +0000)
src/DlgRef/DlgRef.cxx

index 42bb09e0873fac075f18f6fd7053c28d94ecd0f2..c22828f46e1bf274c874f8b9ac9542861ac0cf48 100644 (file)
@@ -751,6 +751,9 @@ DlgRef_Skeleton::~DlgRef_Skeleton()
 QString DlgRef::PrintDoubleValue( double theValue, int thePrecision )
 {
   const double prec = 1e-12;
+  
+  if ( abs(theValue) < thePrecision)
+    return "0";
 
   QString aRes;
   aRes.setNum( theValue, 'g', thePrecision );