summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profilegraphics.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 834d7bdb1..f2d8e74df 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -954,9 +954,12 @@ void ProfileGraphicsView::plot_one_event(struct event *ev)
int o2 = get_o2(&dive->cylinder[entry->cylinderindex].gasmix);
name += ": ";
- name += (he) ? QString("%1/%2").arg((o2 + 5) / 10).arg((he + 5) / 10)
- : is_air(o2, he) ? name += tr("air")
- : QString(tr("EAN%1")).arg((o2 + 5) / 10);
+ if (he)
+ name += QString("%1/%2").arg((o2 + 5) / 10).arg((he + 5) / 10);
+ else if(is_air(o2, he))
+ name += tr("air");
+ else
+ name += QString(tr("EAN%1")).arg((o2 + 5) / 10);
} else if (ev->name && !strcmp(ev->name, "SP change")) {
name += QString(":%1").arg((double) ev->value / 1000);