aboutsummaryrefslogtreecommitdiff
path: root/js/document/html-document.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/document/html-document.js')
-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 579603e0..5d507476 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -711,7 +711,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
711 this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing; 711 this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing;
712 712
713 if(typeof this.application.ninja.selectedElements !== 'undefined'){ 713 if(typeof this.application.ninja.selectedElements !== 'undefined'){
714 this.selectionModel = this.application.ninja.selectedElements; 714 this.selectionModel = this.application.ninja.selectedElements.slice(0);
715 } 715 }
716 716
717 this.draw3DGrid = this.application.ninja.appModel.show3dGrid; 717 this.draw3DGrid = this.application.ninja.appModel.show3dGrid;
@@ -725,8 +725,8 @@ exports.HTMLDocument = Montage.create(TextDocument, {
725 this.application.ninja.stage.drawUtils.gridHorizontalSpacing = this.gridHorizontalSpacing; 725 this.application.ninja.stage.drawUtils.gridHorizontalSpacing = this.gridHorizontalSpacing;
726 this.application.ninja.stage.drawUtils.gridVerticalSpacing = this.gridVerticalSpacing; 726 this.application.ninja.stage.drawUtils.gridVerticalSpacing = this.gridVerticalSpacing;
727 727
728 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null) && (this.selectionModel.length > 0)){ 728 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null)){
729 this.application.ninja.selectionController.initWithDocument(this.selectionModel); 729 this.application.ninja.selectedElements = this.selectionModel.slice(0);
730 } 730 }
731 731
732 if((this.savedLeftScroll!== null) && (this.savedTopScroll !== null)){ 732 if((this.savedLeftScroll!== null) && (this.savedTopScroll !== null)){