PAL7530 Incorrect coordinates of sphere's points are displaying in the "Point Coordinates"

This commit is contained in:
dmv 2009-01-23 13:15:01 +00:00
parent 268ed9d27f
commit 54b0cd335e

View File

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