From 97797c44b976c0ebca04fa32b47d4c774670c6b5 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 14 Feb 2022 10:23:58 -0500 Subject: [PATCH] Schematic: added drag wires undo/redo fix Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10845 --- eeschema/tools/sch_move_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index 87d2c0021b..958350716a 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -1455,7 +1455,10 @@ void SCH_MOVE_TOOL::setTransitions() void SCH_MOVE_TOOL::commitNewDragLines() { for( auto newLine : m_newDragLines ) + { saveCopyInUndoList( newLine, UNDO_REDO::NEWITEM, true ); + newLine->ClearEditFlags(); + } m_newDragLines.clear(); }