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:
parent
3ad0abae3f
commit
e9a881ed01
|
@ -440,6 +440,8 @@ bool ROUTER::StartRouting( const VECTOR2I& aP, ITEM* aStartItem, int aLayer )
|
|||
else
|
||||
{
|
||||
m_state = IDLE;
|
||||
m_placer.reset();
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue