diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-10-28 16:27:10 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-28 16:27:10 -0700 |
commit | 4d9c30d42450077ac569c9e9e4d8690a2d38ff68 (patch) | |
tree | 8c1d624cd62c036c5a0ba4d4219a635b4ec8ee4d /qt-ui/profile | |
parent | 1899d99d1cf7d6c1807912d6156d456436a87763 (diff) | |
download | subsurface-4d9c30d42450077ac569c9e9e4d8690a2d38ff68.tar.gz |
Explicit first gas only on first sample
Instead of the 30 second heuristic we only assume that this is an explicit
first gas if the event coincides the first sample.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/diveeventitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveeventitem.cpp b/qt-ui/profile/diveeventitem.cpp index bd9735a96..cceaaa5e7 100644 --- a/qt-ui/profile/diveeventitem.cpp +++ b/qt-ui/profile/diveeventitem.cpp @@ -131,7 +131,7 @@ bool DiveEventItem::shouldBeHidden() * Don't bother showing those */ struct sample *first_sample = &get_dive_dc(&displayed_dive, dc_number)->sample[0]; - if (!strcmp(event->name, "gaschange") && (event->time.seconds < 30 || event->time.seconds == first_sample->time.seconds)) + if (!strcmp(event->name, "gaschange") && event->time.seconds == first_sample->time.seconds) return true; for (int i = 0; i < evn_used; i++) { |