From cd1884b29cff57b225e1ab58d0b1dcad25669034 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Oct 2015 13:00:58 +0900 Subject: Use neutral color for "no SAC information" In commit 31d1d1f4217c ("Don't change pen color when for zero SAC") Robert continues to use the last SAC color (which certainly was better than switching to dark green for "extremely low SAC rate"). But I think it makes even more sense to mark it as neutral - so I picked a gray. Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveprofileitem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index cff2b1f43..2c814678a 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -782,6 +782,8 @@ void DiveGasPressureItem::paint(QPainter *painter, const QStyleOptionGraphicsIte for (int i = 1, count = poly.count(); i < count; i++, entry++) { if (entry->sac) pen.setBrush(getSacColor(entry->sac, displayed_dive.sac)); + else + pen.setBrush(MED_GRAY_HIGH_TRANS); painter->setPen(pen); painter->drawLine(poly[i - 1], poly[i]); } -- cgit v1.2.3-70-g09d2