diff options
author | 2015-10-24 06:55:51 +0900 | |
---|---|---|
committer | 2015-10-24 06:55:51 +0900 | |
commit | 997123c0a43311a05f5a85b1738b148b636af2c8 (patch) | |
tree | 357db5e0f18d4f500110e6dc4428cfa6758ff48c /qt-ui | |
parent | 6703e1091bba453eb7e62dbfe2e2b3bf790776db (diff) | |
parent | 31d1d1f4217cab43c1fa6ca5612c2cc3ccc656eb (diff) | |
download | subsurface-997123c0a43311a05f5a85b1738b148b636af2c8.tar.gz |
Merge branch 'for_dirk' of https://github.com/atdotde/subsurface
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 986a0eac0..cff2b1f43 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -780,7 +780,8 @@ void DiveGasPressureItem::paint(QPainter *painter, const QStyleOptionGraphicsIte Q_FOREACH (const QPolygonF &poly, polygons) { entry = dataModel->data().entry; for (int i = 1, count = poly.count(); i < count; i++, entry++) { - pen.setBrush(getSacColor(entry->sac, displayed_dive.sac)); + if (entry->sac) + pen.setBrush(getSacColor(entry->sac, displayed_dive.sac)); painter->setPen(pen); painter->drawLine(poly[i - 1], poly[i]); } |