Skip to content

Commit 1d4e867

Browse files
authored
Merge pull request #392 from pklampros/master
Make sure the shape refs are used when linking/unlinking
2 parents b943241 + b1d410f commit 1d4e867

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

depthmapX/views/glview/glview.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ void GLView::mouseReleaseEvent(QMouseEvent *event)
425425
int axRef2 = *it;
426426
// axial is only joined one-by-one
427427
m_pDoc.modifiedFlag = true;
428-
m_pDoc.m_meta_graph->getDisplayedShapeGraph().linkShapes(axRef1, axRef2, true);
428+
m_pDoc.m_meta_graph->getDisplayedShapeGraph().linkShapesFromRefs(axRef1, axRef2, true);
429429
m_pDoc.m_meta_graph->clearSel();
430430
}
431431
}
@@ -468,7 +468,7 @@ void GLView::mouseReleaseEvent(QMouseEvent *event)
468468
int axRef2 = *it;
469469
// axial is only joined one-by-one
470470
m_pDoc.modifiedFlag = true;
471-
m_pDoc.m_meta_graph->getDisplayedShapeGraph().unlinkShapes(axRef1, axRef2, true);
471+
m_pDoc.m_meta_graph->getDisplayedShapeGraph().unlinkShapesFromRefs(axRef1, axRef2, true);
472472
m_pDoc.m_meta_graph->clearSel();
473473
}
474474
}

0 commit comments

Comments
 (0)