Commit 6d5d9af9 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с удалением комментариев (баг 24136).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56052 954022d7-b5bf-4e40-9824-e11837661b57
parent 5563df15
...@@ -776,7 +776,7 @@ Paragraph.prototype = ...@@ -776,7 +776,7 @@ Paragraph.prototype =
// Удаляем комментарий, если это необходимо // Удаляем комментарий, если это необходимо
if ( true === this.DeleteCommentOnRemove && para_Comment === Item.Type ) if ( true === this.DeleteCommentOnRemove && para_Comment === Item.Type )
this.LogicDocument.Remove_Comment( Item.Id, true ); this.LogicDocument.Remove_Comment( Item.CommentId, true );
var SpellingsCount = this.SpellChecker.Elements.length; var SpellingsCount = this.SpellChecker.Elements.length;
for ( var Pos = 0; Pos < SpellingsCount; Pos++ ) for ( var Pos = 0; Pos < SpellingsCount; Pos++ )
...@@ -16468,7 +16468,7 @@ Paragraph.prototype = ...@@ -16468,7 +16468,7 @@ Paragraph.prototype =
var Item = this.Content[Index]; var Item = this.Content[Index];
if ( para_CommentEnd === Item.Type || para_CommentStart === Item.Type || para_Comment === Item.Type ) if ( para_CommentEnd === Item.Type || para_CommentStart === Item.Type || para_Comment === Item.Type )
{ {
editor.WordControl.m_oLogicDocument.Remove_Comment( Item.Id, true ); editor.WordControl.m_oLogicDocument.Remove_Comment( Item.CommentId, true );
} }
} }
}, },
......
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