From b7415ca2c90a540667f46d76ee02ca99059fb786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 14 Feb 2023 00:58:44 +0100 Subject: [PATCH] Fixed areas digital zoom handling --- src/GUI/areaitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/areaitem.cpp b/src/GUI/areaitem.cpp index d5d026cd..2b7183ff 100644 --- a/src/GUI/areaitem.cpp +++ b/src/GUI/areaitem.cpp @@ -178,7 +178,7 @@ void AreaItem::setDigitalZoom(int zoom) prepareGeometryChange(); _digitalZoom = zoom; - _pen.setWidthF(_width * pow(2, -_digitalZoom)); + _pen.setWidthF(width() * pow(2, -_digitalZoom)); } void AreaItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)