From e9a881ed01d1be18c1403916605f10268857032e Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Mon, 19 Feb 2024 17:39:16 +0300 Subject: [PATCH] Reset placer when routing start fails to prevent crash on next usage. Fixes https://gitlab.com/kicad/code/kicad/-/issues/17008 --- pcbnew/router/pns_router.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index ed60452dc1..6e78130b5d 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -440,6 +440,8 @@ bool ROUTER::StartRouting( const VECTOR2I& aP, ITEM* aStartItem, int aLayer ) else { m_state = IDLE; + m_placer.reset(); + return false; } }