[PATCH 7/7] Show CC-sp in bar, and not mbar
Anton Lundin
glance at acc.umu.se
Sat Dec 7 07:25:44 UTC 2013
Fixes #257
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
qt-ui/diveplanner.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 7b607ab..c5fa8b3 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -1039,7 +1039,7 @@ QVariant DivePlannerPointsModel::data(const QModelIndex& index, int role) const
if(role == Qt::DisplayRole) {
divedatapoint p = divepoints.at(index.row());
switch(index.column()) {
- case CCSETPOINT: return p.po2;
+ case CCSETPOINT: return (double) p.po2 / 1000;
case DEPTH: return rint(get_depth_units(p.depth, NULL, NULL));
case DURATION: return p.time / 60;
case GAS: return dpGasToStr(p);
--
1.8.3.2
More information about the subsurface
mailing list