summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-11-30 19:10:47 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-11-30 19:10:47 +0200
commit22e0323d6ad28933644cd98743d693c5f23f71a5 (patch)
treea8541a07363fecd24eb81db44a1a1152edde593b /qt-ui/models.cpp
parent1ab915a7d9fa26db75c5d26b0a5d6a009efa4f58 (diff)
downloadsubsurface-22e0323d6ad28933644cd98743d693c5f23f71a5.tar.gz
Print: fix wrong Max. CNS / SAC columns
Swap the places of the CNS and SAC values in the profile tables. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 9be7dc5d9..920d362e0 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -1657,9 +1657,9 @@ QVariant ProfilePrintModel::data(const QModelIndex &index, int role) const
return gases;
}
if (col == 2)
- return QString::number(dive->maxcns);
- if (col == 3)
return di.displaySac();
+ if (col == 3)
+ return QString::number(dive->maxcns);
if (col == 4) {
weight_t tw = { total_weight(dive) };
return get_weight_string(tw, true);