Reset placer when routing start fails to prevent crash on next usage.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17008
This commit is contained in:
Alex Shvartzkop 2024-02-19 17:39:16 +03:00 committed by dsa-t
parent 3ad0abae3f
commit e9a881ed01
1 changed files with 2 additions and 0 deletions

View File

@ -440,6 +440,8 @@ bool ROUTER::StartRouting( const VECTOR2I& aP, ITEM* aStartItem, int aLayer )
else
{
m_state = IDLE;
m_placer.reset();
return false;
}
}