From b1d410f42600f3e7451b2e0c06b9dd84575ae54d Mon Sep 17 00:00:00 2001 From: Petros Koutsolampros Date: Sun, 8 Nov 2020 18:09:05 +0000 Subject: [PATCH] Make sure the shape refs are used when linking/unlinking --- depthmapX/views/glview/glview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/depthmapX/views/glview/glview.cpp b/depthmapX/views/glview/glview.cpp index 523baeae..b00832de 100644 --- a/depthmapX/views/glview/glview.cpp +++ b/depthmapX/views/glview/glview.cpp @@ -425,7 +425,7 @@ void GLView::mouseReleaseEvent(QMouseEvent *event) int axRef2 = *it; // axial is only joined one-by-one m_pDoc.modifiedFlag = true; - m_pDoc.m_meta_graph->getDisplayedShapeGraph().linkShapes(axRef1, axRef2, true); + m_pDoc.m_meta_graph->getDisplayedShapeGraph().linkShapesFromRefs(axRef1, axRef2, true); m_pDoc.m_meta_graph->clearSel(); } } @@ -468,7 +468,7 @@ void GLView::mouseReleaseEvent(QMouseEvent *event) int axRef2 = *it; // axial is only joined one-by-one m_pDoc.modifiedFlag = true; - m_pDoc.m_meta_graph->getDisplayedShapeGraph().unlinkShapes(axRef1, axRef2, true); + m_pDoc.m_meta_graph->getDisplayedShapeGraph().unlinkShapesFromRefs(axRef1, axRef2, true); m_pDoc.m_meta_graph->clearSel(); } }