diff --git a/oscar/Graphs/MinutesAtPressure.cpp b/oscar/Graphs/MinutesAtPressure.cpp index ddaadd19..15cbe32e 100644 --- a/oscar/Graphs/MinutesAtPressure.cpp +++ b/oscar/Graphs/MinutesAtPressure.cpp @@ -625,6 +625,10 @@ void RecalcMAP::updateTimes(PressureInfo & info) { void RecalcMAP:: setSelectionRange(gGraph* graph) { graph->graphView()->GetXBounds(minTime, maxTime); + // changes suggested by grnbrg + qint64 clockdrift = qint64(p_profile->cpap->clockDrift()) * 1000L; + minTime -= clockdrift; + maxTime -= clockdrift; } void RecalcMAP::run()