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 111c491d..aac03606 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -698,7 +698,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
698 this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing; 698 this.gridVerticalSpacing = this.application.ninja.stage.drawUtils.gridVerticalSpacing;
699 699
700 if(typeof this.application.ninja.selectedElements !== 'undefined'){ 700 if(typeof this.application.ninja.selectedElements !== 'undefined'){
701 this.selectionModel = this.application.ninja.selectedElements; 701 this.selectionModel = this.application.ninja.selectedElements.slice(0);
702 } 702 }
703 703
704 this.draw3DGrid = this.application.ninja.appModel.show3dGrid; 704 this.draw3DGrid = this.application.ninja.appModel.show3dGrid;
@@ -717,8 +717,8 @@ exports.HTMLDocument = Montage.create(TextDocument, {
717 this.application.ninja.stage.drawUtils.gridHorizontalSpacing = this.gridHorizontalSpacing; 717 this.application.ninja.stage.drawUtils.gridHorizontalSpacing = this.gridHorizontalSpacing;
718 this.application.ninja.stage.drawUtils.gridVerticalSpacing = this.gridVerticalSpacing; 718 this.application.ninja.stage.drawUtils.gridVerticalSpacing = this.gridVerticalSpacing;
719 719
720 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null) && (this.selectionModel.length > 0)){ 720 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null)){
721 this.application.ninja.selectionController.initWithDocument(this.selectionModel); 721 this.application.ninja.selectedElements = this.selectionModel.slice(0);
722 } 722 }
723 723
724 if((this.savedLeftScroll!== null) && (this.savedTopScroll !== null)){ 724 if((this.savedLeftScroll!== null) && (this.savedTopScroll !== null)){