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:
Seth Hillbrand 2022-11-29 09:45:06 -08:00
parent 5fc5a2132b
commit 4039b7da6b
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ protected:
void clearAnchors()
{
m_anchors.clear();
m_snapItem = nullptr;
}
/**