From 1128263c0818cfbc1437460b7b8aa491453ba214 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 19 Nov 2013 23:37:02 +1000 Subject: [PATCH] Fix html glitch in Daily sessions list --- sleepyhead/daily.cpp | 2 +- sleepyhead/summary.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sleepyhead/daily.cpp b/sleepyhead/daily.cpp index 72b04ade..0940e71e 100644 --- a/sleepyhead/daily.cpp +++ b/sleepyhead/daily.cpp @@ -815,7 +815,7 @@ QString Daily::getSessionInformation(Day * cpap, Day * oxi, Day * stage) sess->settings[SESSION_ENABLED]=true; } bool b=sess->settings[SESSION_ENABLED].toBool(); - html+=QString("" + html+=QString("" "" "%5%6%7%3%2") .arg((*s)->session()) diff --git a/sleepyhead/summary.cpp b/sleepyhead/summary.cpp index b110fbe6..659d1c6a 100644 --- a/sleepyhead/summary.cpp +++ b/sleepyhead/summary.cpp @@ -895,14 +895,13 @@ QString Summary::GenerateHTML() } else if (mode>MODE_CPAP) { extratxt+=QString("APAP %1 - %2") .arg(rx.min,4,'f',1) - .arg(rx.max,4,'f',1) - .arg(STR_UNIT_CMH2O); + .arg(rx.max,4,'f',1); tooltip=QString("%1 %2% ").arg(machstr).arg(percentile*100.0)+STR_TR_Pressure+ QString("=%2").arg(rx.per1,0,'f',decimals); } else { if (cpapmode>MODE_CPAP) { - extratxt+=QString("CPAP %1").arg(rx.min,4,'f',1).arg(STR_UNIT_CMH2O); + extratxt+=QString("CPAP %1").arg(rx.min,4,'f',1); tooltip=QString("%1").arg(machstr); } else { extratxt+="";