summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-03-29 20:47:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-03-31 08:48:38 -0700
commit991d1bdf191cfd36a7023346052ba0f1f49bc6ba (patch)
treee9f17a84e32187a25164d71702cf151216597b48
parent0521f79fae14983b9efa4b782d3ec347a59b3e8d (diff)
downloadsubsurface-991d1bdf191cfd36a7023346052ba0f1f49bc6ba.tar.gz
profile: fix color on pressure-item
The "in_planner" condition was inadvertently inverted in c6d78bc134 and therefore the wrong data was used to draw the line (density instead of SAC). Revert to original. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--profile-widget/diveprofileitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp
index aa529364c..00e6e0eed 100644
--- a/profile-widget/diveprofileitem.cpp
+++ b/profile-widget/diveprofileitem.cpp
@@ -548,7 +548,7 @@ void DiveGasPressureItem::replot(const dive *d, bool in_planner)
boundingPoly.push_back(point);
QColor color;
- if (in_planner) {
+ if (!in_planner) {
if (entry->sac)
color = getSacColor(entry->sac, d->sac);
else