From 299b548a412d40f5ff2cfec0755fca0c7141a165 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 27 Feb 2024 19:31:09 -0500 Subject: [PATCH] Trivial change to avoid crash on tool re-entry See https://gitlab.com/kicad/code/kicad/-/issues/17164 --- common/tool/tool_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index 07b576b7f2..97af5480a8 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -704,7 +704,7 @@ TOOL_EVENT* TOOL_MANAGER::ScheduleWait( TOOL_BASE* aTool, const TOOL_EVENT_LIST& { TOOL_STATE* st = m_toolState[aTool]; - wxASSERT( !st->pendingWait ); // everything collapses on two KiYield() in a row + wxCHECK( !st->pendingWait, nullptr ); // everything collapses on two KiYield() in a row // indicate to the manager that we are going to sleep and we shall be // woken up when an event matching aConditions arrive