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>
This commit is contained in:
Berthold Stoeger 2021-03-29 20:47:48 +02:00 committed by Dirk Hohndel
parent 0521f79fae
commit 991d1bdf19

View file

@ -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