diff --git a/src/Athlete.cpp b/src/Athlete.cpp index 5af82de01..447027b3b 100644 --- a/src/Athlete.cpp +++ b/src/Athlete.cpp @@ -512,7 +512,7 @@ Athlete::getWithingsWeight(QDate date) double lastWeight=0.0f; foreach(WithingsReading x, withings_) { - if (x.when.date() < date) lastWeight = x.weightkg; + if (x.when.date() <= date) lastWeight = x.weightkg; if (x.when.date() > date) break; } return lastWeight;