Commit ab56c479 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 21384 - Пропадают цитаты при переоткрытии документа с комментариями

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50799 954022d7-b5bf-4e40-9824-e11837661b57
parent 300b0e94
......@@ -3590,7 +3590,6 @@ function BinaryFileReader(doc, openParams)
var oOldComment = this.oReadResult.oComments[i];
var oNewComment = new CComment(this.Document.Comments, fInitCommentData(oOldComment))
this.Document.Comments.Add(oNewComment);
this.Document.DrawingDocument.m_oWordControl.m_oApi.sync_AddComment( oNewComment.Id, oNewComment.Data );
oCommentsNewId[oOldComment.Id] = oNewComment;
}
for(var i in this.oReadResult.oCommentsPlaces)
......@@ -3660,6 +3659,12 @@ function BinaryFileReader(doc, openParams)
}
}
}
//посылаем событие о добавлении комментариев
for(var i in oCommentsNewId)
{
var oNewComment = oCommentsNewId[i];
this.Document.DrawingDocument.m_oWordControl.m_oApi.sync_AddComment( oNewComment.Id, oNewComment.Data );
}
this.Document.Content = this.oReadResult.DocumentContent;
if(this.Document.Content.length == 0)
{
......
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