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 );