From 54b0cd335e5c9a6a7f7b5731d38767021abc9fb8 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 23 Jan 2009 13:15:01 +0000 Subject: [PATCH] PAL7530 Incorrect coordinates of sphere's points are displaying in the "Point Coordinates" --- src/DlgRef/DlgRef_SpinBox.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/DlgRef/DlgRef_SpinBox.cxx b/src/DlgRef/DlgRef_SpinBox.cxx index 65979c5c7..6e716b2be 100644 --- a/src/DlgRef/DlgRef_SpinBox.cxx +++ b/src/DlgRef/DlgRef_SpinBox.cxx @@ -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); -- 2.39.2