summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-12-07 16:25:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-07 08:09:05 -0800
commit4c3f51291e6c212c57df02c49fe4cb352baacc07 (patch)
tree1f9c698c4eb181f6ba33c830fb4b9b286ee0a5a4 /qt-ui/diveplanner.cpp
parent755ea74492984e4f6679ff4dc148f4b04effc380 (diff)
downloadsubsurface-4c3f51291e6c212c57df02c49fe4cb352baacc07.tar.gz
Show CC-sp in bar, and not mbar
Fixes #257 Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 7b607abcc..c5fa8b368 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);