diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-10-26 16:21:46 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-10-27 20:36:08 -0700 |
commit | a2d6bcf23fadceae28081ba055e631c886ca6603 (patch) | |
tree | 1b1c7dd3fe8d386d6c4ac65a82edb4e007c02d3b | |
parent | 46f3b0f238b4c880af974b3fb5bfd2829db215a8 (diff) | |
download | subsurface-a2d6bcf23fadceae28081ba055e631c886ca6603.tar.gz |
ToolTipItem: only show gf line in pressure graph when using Buhlmann model
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | profile-widget/divetooltipitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/profile-widget/divetooltipitem.cpp b/profile-widget/divetooltipitem.cpp index fb7511e69..cb46e898c 100644 --- a/profile-widget/divetooltipitem.cpp +++ b/profile-widget/divetooltipitem.cpp @@ -264,7 +264,8 @@ void ToolTipItem::refresh(const QPointF &pos) painter.drawRect(0,0,16,10); if (entry) { painter.setPen(QColor(0, 0, 0, 255)); - painter.drawLine(0, 60 - entry->gfline / 2, 16, 60 - entry->gfline / 2); + if (prefs.deco_mode == BUEHLMANN) + painter.drawLine(0, 60 - entry->gfline / 2, 16, 60 - entry->gfline / 2); painter.drawLine(0, 60 - AMB_PERCENTAGE * (entry->pressures.n2 + entry->pressures.he) / entry->ambpressure / 2, 16, 60 - AMB_PERCENTAGE * (entry->pressures.n2 + entry->pressures.he) / entry->ambpressure /2); painter.setPen(QColor(0, 0, 0, 127)); |