From 991d1bdf191cfd36a7023346052ba0f1f49bc6ba Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 29 Mar 2021 20:47:48 +0200 Subject: 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 --- profile-widget/diveprofileitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile-widget/diveprofileitem.cpp') 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 -- cgit v1.2.3-70-g09d2