X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/7a4bca3706dc42043a773ece492592f6950814fa..274b8289ef222d2641b124b6f9c55c63b27af7bb:/src/smartxml/smartxml.js?ds=inline diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index d722c20..eb97ea9 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -436,7 +436,9 @@ $.extend(Document.prototype, Backbone.Events, { } this._transformationLevel--; //console.log('clearing redo stack'); - this.redoStack = []; + if(!this._undoInProgress) { + this.redoStack = []; + } return toret; } else { throw new Error('Transformation ' + transformation + ' doesn\'t exist!');