smartxml: fix - do not clear redo stack if we are just performing undo operation
[fnpeditor.git] / src / smartxml / smartxml.js
index d722c20..eb97ea9 100644 (file)
@@ -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!');