Schematic: added drag wires undo/redo fix
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10845
This commit is contained in:
parent
72a389e612
commit
97797c44b9
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue