Remember to clear pointers when clearing backing data
The snap is a point to the anchors that we compute. This needs to be removed when we clear the vector Fixes https://gitlab.com/kicad/code/kicad/issues/13037
This commit is contained in:
parent
5fc5a2132b
commit
4039b7da6b
|
@ -112,6 +112,7 @@ protected:
|
||||||
void clearAnchors()
|
void clearAnchors()
|
||||||
{
|
{
|
||||||
m_anchors.clear();
|
m_anchors.clear();
|
||||||
|
m_snapItem = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue