mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-17 01:49:55 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user