From 40276e8b950a9282e640fb43c898a6eeaf7ac8fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 2 Jul 2018 18:50:41 +0200 Subject: [PATCH] Fixed broken path highlighting when digital zoom is set --- src/GUI/pathitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/pathitem.cpp b/src/GUI/pathitem.cpp index b83296f8..a527791d 100644 --- a/src/GUI/pathitem.cpp +++ b/src/GUI/pathitem.cpp @@ -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); }