summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/divetooltipitem.cpp3
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));