diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index 8fb5d91e..f4e5729b 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -2541,8 +2541,8 @@ bool ResmedLoader::LoadBRP(Session *sess, const QString & path) if (max > es.physical_maximum) max = es.physical_maximum; - sess->setMin(code, min); - sess->setMax(code, max); + sess->updateMin(code, min); + sess->updateMax(code, max); sess->setPhysMin(code, es.physical_minimum); sess->setPhysMax(code, es.physical_maximum); } @@ -2800,8 +2800,8 @@ bool ResmedLoader::LoadPLD(Session *sess, const QString & path) } if (a) { - sess->setMin(code, a->Min()); - sess->setMax(code, a->Max()); + sess->updateMin(code, a->Min()); + sess->updateMax(code, a->Max()); sess->setPhysMin(code, es.physical_minimum); sess->setPhysMax(code, es.physical_maximum); a->setDimension(es.physical_dimension); @@ -2900,8 +2900,8 @@ void ResmedLoader::ToTimeDelta(Session *sess, ResMedEDFInfo &edf, EDFSignal &es, if ((tmp >= t_min) && (tmp <= t_max)) el->AddEvent(tt, c); - sess->setMin(code, min); - sess->setMax(code, max); + sess->updateMin(code, min); + sess->updateMax(code, max); sess->setPhysMin(code, es.physical_minimum); sess->setPhysMax(code, es.physical_maximum); sess->updateLast(tt);