1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed broken path highlighting when digital zoom is set

This commit is contained in:
Martin Tůma 2018-07-02 18:50:41 +02:00
parent 106904a763
commit 40276e8b95

View File

@ -175,10 +175,10 @@ void PathItem::setMarkerColor(const QColor &color)
void PathItem::hover(bool hover)
{
if (hover) {
_pen.setWidth(_width + 1);
_pen.setWidth((_width + 1) * pow(2, -_digitalZoom));
setZValue(zValue() + 1.0);
} else {
_pen.setWidth(_width);
_pen.setWidth(_width * pow(2, -_digitalZoom));
setZValue(zValue() - 1.0);
}