mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0521f79fae
commit
991d1bdf19
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ void DiveGasPressureItem::replot(const dive *d, bool in_planner)
|
||||||
boundingPoly.push_back(point);
|
boundingPoly.push_back(point);
|
||||||
|
|
||||||
QColor color;
|
QColor color;
|
||||||
if (in_planner) {
|
if (!in_planner) {
|
||||||
if (entry->sac)
|
if (entry->sac)
|
||||||
color = getSacColor(entry->sac, d->sac);
|
color = getSacColor(entry->sac, d->sac);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue