Commit 97a8b804 authored by Kuntal  Majumder's avatar Kuntal Majumder 😟

Fix crash on moving a single lonely anchor

BUG: 422406
parent 9dbe11bb
......@@ -397,6 +397,11 @@ void KisToolSelectMagnetic::deleteSelectedAnchor()
void KisToolSelectMagnetic::updateSelectedAnchor()
{
//the only anchor
if (m_anchorPoints.count() == 1) {
return;
}
// initial
if (m_selectedAnchor == 0 && m_anchorPoints.count() > 1) {
m_pointCollection[m_selectedAnchor] = computeEdgeWrapper(m_anchorPoints[0], m_anchorPoints[1]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment