diff options
author | Jan Mulder <jlmulder@planet.nl> | 2014-03-15 19:00:58 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-15 12:07:34 -0700 |
commit | aa0cd792bbe3e5c2dbaaaaff77688f4ee96c694c (patch) | |
tree | 140ba77b5de8d418aee06f21a976759669c8b4b4 /qt-ui/profile/diveprofileitem.h | |
parent | ce6f2cdda4bc8e5a95b96c35579f8f1213a987f6 (diff) | |
download | subsurface-aa0cd792bbe3e5c2dbaaaaff77688f4ee96c694c.tar.gz |
Bugfix: generalize pp graphs to allow for multi over-threshold periods
Especially in O2 decompression parts of a dive, the pp02 is typically very
close to the threshold value (normally 1.60 bar). The old implementation
of the pp profile graphs assumes that there is exacty 1 consecutive set of
samples that needs to be in the "warning color". This results in an
erroneous display of the mentioned graphs, connecting multiple episodes of
too high pp with bogus lines in between.
This fix generalizes the pp graph logic to allow for multiple segments of
high pp, each to been drawn seperately in the "warning color".
Signed-off-by: Jan Mulder <jlmulder@planet.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.h')
-rw-r--r-- | qt-ui/profile/diveprofileitem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h index ee7132c40..480776546 100644 --- a/qt-ui/profile/diveprofileitem.h +++ b/qt-ui/profile/diveprofileitem.h @@ -177,7 +177,7 @@ public: void setColors(const QColor &normalColor, const QColor &alertColor); private: - QPolygonF alertPoly; + QVector<QPolygonF> alertPolygons; QString threshouldKey; QString visibilityKey; QColor normalColor; |