From 035725cd5d0ba184c3ca439cf802d21f1056de37 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 12 Dec 2023 16:06:44 +0000 Subject: [PATCH] Fallback to normal undo when wire-drawing not in progress. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16216 --- eeschema/tools/sch_line_wire_bus_tool.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eeschema/tools/sch_line_wire_bus_tool.cpp b/eeschema/tools/sch_line_wire_bus_tool.cpp index d3ee559d05..00b4d1af9d 100644 --- a/eeschema/tools/sch_line_wire_bus_tool.cpp +++ b/eeschema/tools/sch_line_wire_bus_tool.cpp @@ -910,6 +910,11 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const TOOL_EVENT& aTool, int aType, m_view->AddToPreview( wire->Clone() ); } } + else if( evt->IsAction( &ACTIONS::undo ) ) + { + // Dispatch as normal undo event + evt->SetPassEvent(); + } else { wxBell();