Commit 92240396 authored by GoshaZotov's avatar GoshaZotov

setSelection after paste from binary

parent 1937f0ea
...@@ -9289,7 +9289,8 @@ ...@@ -9289,7 +9289,8 @@
WorksheetView.prototype._pasteFromBinary = function (val, isCheckSelection, tablesMap, specialPasteProps) { WorksheetView.prototype._pasteFromBinary = function (val, isCheckSelection, tablesMap, specialPasteProps) {
var t = this; var t = this;
var arn = t.model.selectionRange.getLast(); var trueActiveRange = t.model.selectionRange.getLast().clone();
var arn = t.model.selectionRange.getLast().clone();
var arrFormula = []; var arrFormula = [];
var pasteRange = window["Asc"]["editor"].wb.clipboard.pasteProcessor.activeRange; var pasteRange = window["Asc"]["editor"].wb.clipboard.pasteProcessor.activeRange;
...@@ -9407,6 +9408,9 @@ ...@@ -9407,6 +9408,9 @@
var maxACol = 1; var maxACol = 1;
var plRow = 0; var plRow = 0;
var plCol = 0; var plCol = 0;
trueActiveRange.r2 = arn.r2;
trueActiveRange.c2 = arn.c2;
} }
...@@ -9565,7 +9569,8 @@ ...@@ -9565,7 +9569,8 @@
} }
t.isChanged = true; t.isChanged = true;
var arnFor = [arn, arrFormula]; var arnFor = [trueActiveRange, arrFormula];
this.setSelection(trueActiveRange);
var _clipboard = window["Asc"]["editor"].wb.clipboard; var _clipboard = window["Asc"]["editor"].wb.clipboard;
_clipboard.specialPasteProps = null; _clipboard.specialPasteProps = null;
...@@ -11486,7 +11491,7 @@ ...@@ -11486,7 +11491,7 @@
this.model.onUpdateRanges(arrChanged); this.model.onUpdateRanges(arrChanged);
this.objectRender.rebuildChartGraphicObjects(arrChanged); this.objectRender.rebuildChartGraphicObjects(arrChanged);
this.cellCommentator.updateCommentPosition(); this.cellCommentator.updateCommentPosition();
this.updateSpecialPasteOptionsPosition(); //this.updateSpecialPasteOptionsPosition();
this.handlers.trigger("onDocumentPlaceChanged"); this.handlers.trigger("onDocumentPlaceChanged");
this.draw(lockDraw); this.draw(lockDraw);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment