From b3792379fed579e1639ecd174aeec4d59e42becc Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 11 Oct 2023 21:45:26 +0200 Subject: [PATCH] . --- GUI/View/Mask/MaskGraphicsScene.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GUI/View/Mask/MaskGraphicsScene.cpp b/GUI/View/Mask/MaskGraphicsScene.cpp index c6869d13d07..38044eff038 100644 --- a/GUI/View/Mask/MaskGraphicsScene.cpp +++ b/GUI/View/Mask/MaskGraphicsScene.cpp @@ -680,9 +680,9 @@ void MaskGraphicsScene::processPolygonItem(QGraphicsSceneMouseEvent* event) } } - QPointF click_pos = event->buttonDownScenePos(Qt::LeftButton); - double x = m_adaptor->fromSceneX(click_pos.x()); - double y = m_adaptor->fromSceneY(click_pos.y()); + const QPointF click_pos = event->buttonDownScenePos(Qt::LeftButton); + const double x = m_adaptor->fromSceneX(click_pos.x()); + const double y = m_adaptor->fromSceneY(click_pos.y()); dynamic_cast<PolygonItem*>(m_currentItem)->addPoint(x, y); updateScene(); } -- GitLab