aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/html-document.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index 6853f4d7..826a59c0 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -710,7 +710,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
710 this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing; 710 this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing;
711 711
712 if(typeof this.application.ninja.selectedElements !== 'undefined'){ 712 if(typeof this.application.ninja.selectedElements !== 'undefined'){
713 this.selectionModel = this.application.ninja.selectedElements; 713 this.selectionModel = this.application.ninja.selectedElements.slice(0);
714 } 714 }
715 715
716 this.draw3DGrid = this.application.ninja.appModel.show3dGrid; 716 this.draw3DGrid = this.application.ninja.appModel.show3dGrid;
@@ -724,8 +724,8 @@ exports.HTMLDocument = Montage.create(TextDocument, {
724 this.application.ninja.stage.drawUtils.gridHorizontalSpacing = this.gridHorizontalSpacing; 724 this.application.ninja.stage.drawUtils.gridHorizontalSpacing = this.gridHorizontalSpacing;
725 this.application.ninja.stage.drawUtils.gridVerticalSpacing = this.gridVerticalSpacing; 725 this.application.ninja.stage.drawUtils.gridVerticalSpacing = this.gridVerticalSpacing;
726 726
727 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null) && (this.selectionModel.length > 0)){ 727 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null)){
728 this.application.ninja.selectionController.initWithDocument(this.selectionModel); 728 this.application.ninja.selectedElements = this.selectionModel.slice(0);
729 } 729 }
730 730
731 if((this.savedLeftScroll!== null) && (this.savedTopScroll !== null)){ 731 if((this.savedLeftScroll!== null) && (this.savedTopScroll !== null)){