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:
parent
106904a763
commit
40276e8b95
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user