[PATCH 1/3] ToolTipItem: only show gf line in pressure graph when using Buhlmann model
Rick Walsh
rickmwalsh at gmail.com
Tue Oct 25 22:21:46 PDT 2016
Signed-off-by: Rick Walsh <rickmwalsh at gmail.com>
---
profile-widget/divetooltipitem.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/profile-widget/divetooltipitem.cpp b/profile-widget/divetooltipitem.cpp
index fb7511e..cb46e89 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));
--
2.7.4
More information about the subsurface
mailing list