From: dmv Date: Fri, 23 Jan 2009 13:14:12 +0000 (+0000) Subject: PAL7530 Incorrect coordinates of sphere's points are displaying in the "Point Coordin... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=377961f078ec8b01db5a23916f28023c1b104b14;p=modules%2Fgeom.git PAL7530 Incorrect coordinates of sphere's points are displaying in the "Point Coordinates" --- diff --git a/src/DlgRef/DlgRef.cxx b/src/DlgRef/DlgRef.cxx index 42bb09e08..c22828f46 100644 --- a/src/DlgRef/DlgRef.cxx +++ b/src/DlgRef/DlgRef.cxx @@ -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 );