Schematic: added drag wires undo/redo fix

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10845
This commit is contained in:
Mike Williams 2022-02-14 10:23:58 -05:00 committed by Seth Hillbrand
parent 72a389e612
commit 97797c44b9
1 changed files with 3 additions and 0 deletions

View File

@ -1455,7 +1455,10 @@ void SCH_MOVE_TOOL::setTransitions()
void SCH_MOVE_TOOL::commitNewDragLines() void SCH_MOVE_TOOL::commitNewDragLines()
{ {
for( auto newLine : m_newDragLines ) for( auto newLine : m_newDragLines )
{
saveCopyInUndoList( newLine, UNDO_REDO::NEWITEM, true ); saveCopyInUndoList( newLine, UNDO_REDO::NEWITEM, true );
newLine->ClearEditFlags();
}
m_newDragLines.clear(); m_newDragLines.clear();
} }