summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-11 10:10:15 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-11 10:10:15 -0700
commit6c9aaf406ad4dd7e5eb208a376def396a96a69d6 (patch)
tree7e6d05521f093e3fe6d76e7960f49ffff696ce29 /qt-ui/profile
parent966192613164622da2ae8f0770aad8a6cde508ee (diff)
downloadsubsurface-6c9aaf406ad4dd7e5eb208a376def396a96a69d6.tar.gz
Planner: fix calculation when it is safe to surface
We were comparing with a negative depth which apparently confused the algorithm. Fixes #611 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/diveprofileitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index fda31cb12..78a87ade2 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -167,7 +167,7 @@ void DiveProfileItem::modelDataChanged(const QModelIndex &topLeft, const QModelI
plot_data *entry = dataModel->data().entry + dataModel->rowCount() - 1;
for (int i = dataModel->rowCount() - 1; i >= 0; i--, entry--) {
int max = maxCeiling(i);
- // Don't screem if we violate the ceiling by a few cm
+ // Don't scream if we violate the ceiling by a few cm
if (entry->depth < max - 100)
profileColor = QColor(Qt::red);
}