aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjs/document/html-document.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index 9e3f0cdd..9dcea8cb 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -726,6 +726,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
726 this.application.ninja.stage._scrollLeft = this.savedTopScroll; 726 this.application.ninja.stage._scrollLeft = this.savedTopScroll;
727 } 727 }
728 728
729 this.application.ninja.currentSelectedContainer = this.documentRoot;
729 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null)){ 730 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null)){
730 this.application.ninja.selectedElements = this.selectionModel.slice(0); 731 this.application.ninja.selectedElements = this.selectionModel.slice(0);
731 } 732 }
@@ -735,7 +736,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
735 this.application.ninja.undocontroller.undoQueue = this.undoStack.slice(0); 736 this.application.ninja.undocontroller.undoQueue = this.undoStack.slice(0);
736 this.application.ninja.undocontroller.redoQueue = this.redoStack.slice(0); 737 this.application.ninja.undocontroller.redoQueue = this.redoStack.slice(0);
737 738
738 this.application.ninja.currentSelectedContainer = this.documentRoot; 739
739 } 740 }
740 } 741 }
741 //////////////////////////////////////////////////////////////////// 742 ////////////////////////////////////////////////////////////////////