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

restore projection live display (#883)

parent ab4c94e7
No related branches found
No related tags found
1 merge request!2353renames and other clarification in mask/canvas context; restore projections live display (#885)
...@@ -136,9 +136,10 @@ void MaskEditorCanvas::onPositionChanged(double x, double y) ...@@ -136,9 +136,10 @@ void MaskEditorCanvas::onPositionChanged(double x, double y)
{ {
if (m_live_projection) { if (m_live_projection) {
if (m_current_activity == Canvas2DMode::HORIZONTAL_PRJN) if (m_current_activity == Canvas2DMode::HORIZONTAL_PRJN)
dynamic_cast<HorizontalLineItem*>(m_live_projection.get())->setPos(y); m_live_projection->setPos(y);
else if (m_current_activity == Canvas2DMode::VERTICAL_PRJN) else if (m_current_activity == Canvas2DMode::VERTICAL_PRJN)
dynamic_cast<VerticalLineItem*>(m_live_projection.get())->setPos(x); m_live_projection->setPos(x);
emit m_data_item->projectionPositionChanged(m_live_projection.get());
} }
} }
......
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