mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
bug fix: don't compute Daniels Points if no CP set
This commit is contained in:
@@ -45,6 +45,8 @@ class DanielsPoints : public RideMetric {
|
||||
double value(bool) const { return score; }
|
||||
void compute(const RideFile *ride, const Zones *zones,
|
||||
int zoneRange, const QHash<QString,RideMetric*> &) {
|
||||
if (!zones)
|
||||
return;
|
||||
|
||||
static const double EPSILON = 0.1;
|
||||
static const double NEGLIGIBLE = 0.1;
|
||||
|
||||
Reference in New Issue
Block a user