eeschema: Fix undo stacking for break wire

The break wire command is actually two commands: modify the existing
wire and add a new wire.  This means that the command must append to the
previous commit to avoid breaking the undo stack

Fixes: lp:1824251
* https://bugs.launchpad.net/kicad/+bug/1824251
This commit is contained in:
Seth Hillbrand 2019-04-12 19:51:18 -07:00
parent 822cd9c6ef
commit 3bdd69ad6b
1 changed files with 2 additions and 2 deletions

View File

@ -776,8 +776,8 @@ bool SCH_EDIT_FRAME::BreakSegment( SCH_LINE* aSegment, const wxPoint& aPoint,
newSegment->SetStartPoint( aPoint );
AddToScreen( newSegment, aScreen );
if( aAppend )
SaveCopyInUndoList( newSegment, UR_NEW, true );
SaveCopyInUndoList( newSegment, UR_NEW, aAppend );
SaveCopyInUndoList( aSegment, UR_CHANGED, true );
RefreshItem( aSegment );
aSegment->SetEndPoint( aPoint );