Skip to content
Snippets Groups Projects
Commit b3792379 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

.

parent 22ff86f7
No related branches found
No related tags found
1 merge request!2010mask investigation ctd
Pipeline #114649 passed
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment