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

copy/paste комментариев через бинарник

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52188 954022d7-b5bf-4e40-9824-e11837661b57
parent de958b7f
......@@ -7983,6 +7983,26 @@
{
var isMerged = false;
var range = t.model.getRange3(r + autoR*plRow, c + autoC*plCol, r + autoR*plRow, c + autoC*plCol);
//****paste comments****
if(val.aComments && val.aComments.length)
{
var comment;
for(var i = 0; i < val.aComments.length; i++)
{
comment = Asc.clone(val.aComments[i]);
if(comment.nCol == pasteCol && comment.nRow == pasteRow)
{
//change nRow, nCol
comment.nCol = c + autoC*plCol;
comment.nRow = r + autoR*plRow;
var commentData = new asc_CCommentData(comment);
commentData.setId();
t.cellCommentator.addCommentSerialize(commentData);
}
}
}
if(!isOneMerge)
{
for(mergeCheck = 0; mergeCheck < mergeArr.length; ++mergeCheck)
......
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