diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-01-15 20:12:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-01-15 11:37:26 -0800 |
commit | fedadc65dbf84164a079f1d9f402290c5e210537 (patch) | |
tree | 6d906033d3b00415403cf37ccfae1106ac6bd90a /profile-widget | |
parent | c99aaaa323ef8eb02e2d2676be779bc2cd54ab14 (diff) | |
download | subsurface-fedadc65dbf84164a079f1d9f402290c5e210537.tar.gz |
Prevent the heatmap form overlapping at the endsv4.6.0
...by making the pen start at its first position rather
than first position minus half width.
Sorry for my first attempt to solve this in a totally
differen (read: wrong) way.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/diveprofileitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp index c3c716539..c1c98ee14 100644 --- a/profile-widget/diveprofileitem.cpp +++ b/profile-widget/diveprofileitem.cpp @@ -416,7 +416,7 @@ void DivePercentageItem::paint(QPainter *painter, const QStyleOptionGraphicsItem return; painter->save(); QPen mypen; - mypen.setWidthF(vAxis->posAtValue(0) - vAxis->posAtValue(4)); + mypen.setCapStyle(Qt::FlatCap); mypen.setCosmetic(false); QPolygonF poly = polygon(); for (int i = 1, modelDataCount = dataModel->rowCount(); i < modelDataCount; i++) { |