This commit is contained in:
parent
a82fde6598
commit
c358f8f8ee
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ class Undo {
|
|||
}
|
||||
|
||||
public replace(doOperations: IOperation[]) {
|
||||
this.undoStack[this.undoStack.length - 1].doOperations = doOperations;
|
||||
if (this.undoStack.length > 0) {
|
||||
this.undoStack[this.undoStack.length - 1].doOperations = doOperations;
|
||||
}
|
||||
}
|
||||
|
||||
public add( doOperations: IOperation[], undoOperations: IOperation[]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue