From 377961f078ec8b01db5a23916f28023c1b104b14 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 23 Jan 2009 13:14:12 +0000 Subject: [PATCH] PAL7530 Incorrect coordinates of sphere's points are displaying in the "Point Coordinates" --- src/DlgRef/DlgRef.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ); -- 2.39.2