Commit cad3993e authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=25621 - Потеря данных при подлючении другого...

http://bugzserver/show_bug.cgi?id=25621 - Потеря данных при подлючении другого пользователя и ошибка в консоли

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57765 954022d7-b5bf-4e40-9824-e11837661b57
parent d955717a
......@@ -1807,6 +1807,8 @@
};
};
this.activeRange = worksheet.activeRange.clone(true);
//parse HTML
aResult = this._parseHtml(pasteFragment, node, worksheet, isText);
......
......@@ -8215,7 +8215,8 @@
WorksheetView.prototype._setInfoAfterPaste = function (values,clipboard,isCheckSelection) {
var t = this;
var arn = t.activeRange.clone(true);
var wb = window["Asc"]["editor"].wb;
var arn = wb && wb.clipboard && wb.clipboard.activeRange ? wb.clipboard.activeRange : t.activeRange.clone(true);
var arrFormula = [];
var numFor = 0;
var rMax = values.length + values.rowSpanSpCount;
......@@ -8337,6 +8338,8 @@
var plCol = 0;
}
if(isMultiple)
{
if(values[arn.r1] && values[arn.r1][arn.c1])
{
var currentObj = values[arn.r1][arn.c1][0];
var valFormat = '';
......@@ -8348,6 +8351,7 @@
valFormat = clipboard._decode(currentObj.format.split(';')[1]);
}
}
}
for (var autoR = 0;autoR < maxARow; ++autoR) {
for (var autoC = 0;autoC < maxACol; ++autoC) {
for (var r = arn.r1;r < rMax; ++r) {
......
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