Commit 00bf9eef authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 30324 - [CoEdit] Юзеру приходит текст в автофигуре с границами селекта,...

Bug 30324 - [CoEdit] Юзеру приходит текст в автофигуре с границами селекта, если были применены эффекты для шрифта

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64735 954022d7-b5bf-4e40-9824-e11837661b57
parent 75b27485
...@@ -1969,6 +1969,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -1969,6 +1969,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.asc_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save); this.asc_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save);
} }
CollaborativeEditing.Clear_CollaborativeMarks();
// Принимаем чужие изменения // Принимаем чужие изменения
this.collaborativeEditing.applyChanges(); this.collaborativeEditing.applyChanges();
......
...@@ -9,6 +9,8 @@ function CCollaborativeEditing() ...@@ -9,6 +9,8 @@ function CCollaborativeEditing()
this.m_aLinkData = []; this.m_aLinkData = [];
this.m_aNewImages = []; this.m_aNewImages = [];
this.m_aChangedClasses = {};
this.Start_CollaborationEditing = function() this.Start_CollaborationEditing = function()
{ {
}; };
...@@ -193,11 +195,21 @@ function CCollaborativeEditing() ...@@ -193,11 +195,21 @@ function CCollaborativeEditing()
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
this.Add_ChangedClass = function(Class) this.Add_ChangedClass = function(Class)
{ {
var Id = Class.Get_Id();
this.m_aChangedClasses[Id] = Class;
}; };
this.Clear_CollaborativeMarks = function(bRepaint) this.Clear_CollaborativeMarks = function()
{
for ( var Id in this.m_aChangedClasses )
{ {
this.m_aChangedClasses[Id].Clear_CollaborativeMarks();
}
// Очищаем массив
this.m_aChangedClasses = {};
}; };
} }
var CollaborativeEditing = new CCollaborativeEditing(); var CollaborativeEditing = new CCollaborativeEditing();
\ No newline at end of file
...@@ -2208,6 +2208,8 @@ Paragraph.prototype = ...@@ -2208,6 +2208,8 @@ Paragraph.prototype =
Element = aRunReview.Get_Next(); Element = aRunReview.Get_Next();
} }
if(this.bFromDocument)
{
// Рисуем рект вокруг измененных ранов (измененных другим пользователем) // Рисуем рект вокруг измененных ранов (измененных другим пользователем)
Element = aCollChange.Get_Next(); Element = aCollChange.Get_Next();
while (null !== Element) while (null !== Element)
...@@ -2217,7 +2219,7 @@ Paragraph.prototype = ...@@ -2217,7 +2219,7 @@ Paragraph.prototype =
Element = aCollChange.Get_Next(); Element = aCollChange.Get_Next();
} }
// Рисуем подчеркивание орфографии // Рисуем подчеркивание орфографии
if(this.bFromDocument && this.LogicDocument && true === this.LogicDocument.Spelling.Use) if(this.LogicDocument && true === this.LogicDocument.Spelling.Use)
{ {
pGraphics.p_color( 255, 0, 0, 255 ); pGraphics.p_color( 255, 0, 0, 255 );
var SpellingW = editor.WordControl.m_oDrawingDocument.GetMMPerDot(1); var SpellingW = editor.WordControl.m_oDrawingDocument.GetMMPerDot(1);
...@@ -2228,6 +2230,7 @@ Paragraph.prototype = ...@@ -2228,6 +2230,7 @@ Paragraph.prototype =
Element = aSpelling.Get_Next(); Element = aSpelling.Get_Next();
} }
} }
}
if(pGraphics.End_Command) if(pGraphics.End_Command)
{ {
pGraphics.End_Command() pGraphics.End_Command()
......
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