Fix merge resampling rounding

.. I know its a lazy method but at least use the right
   numeric format. LOL. What a twit.
This commit is contained in:
Mark Liversedge
2014-11-18 20:54:16 +00:00
parent de68f7528e
commit 5cefa6a238

View File

@@ -1833,7 +1833,7 @@ RideFile::resample(double newRecIntSecs, int interpolate)
// round to the appropriate decimal places
double rounded = 0.0f;
if (decimalsFor(series) > 0)
rounded = QString("%1").arg(sum, 15, 'g', decimalsFor(series)).toDouble();
rounded = QString("%1").arg(sum, 15, 'f', decimalsFor(series)).toDouble();
else
rounded = qRound(sum);