Changeset fedadc65 in subsurface


Ignore:
Timestamp:
Jan 15, 2017, 11:37:26 AM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
7725842
Parents:
c99aaaa
git-author:
Robert C. Helling <helling@…> (01/15/17 11:12:51)
git-committer:
Dirk Hohndel <dirk@…> (01/15/17 11:37:26)
Message:

Prevent the heatmap form overlapping at the ends

...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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • profile-widget/diveprofileitem.cpp

    rc110b4a2 rfedadc65  
    417417        painter->save();
    418418        QPen mypen;
    419         mypen.setWidthF(vAxis->posAtValue(0) - vAxis->posAtValue(4));
     419        mypen.setCapStyle(Qt::FlatCap);
    420420        mypen.setCosmetic(false);
    421421        QPolygonF poly = polygon();
Note: See TracChangeset for help on using the changeset viewer.