Commit dc75c7c8 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed problem with updating style from selection.

parent 56d5bbc6
...@@ -206,7 +206,17 @@ CStyles.prototype.Create_StyleFromInterface = function(oAscStyle, bCheckLink) ...@@ -206,7 +206,17 @@ CStyles.prototype.Create_StyleFromInterface = function(oAscStyle, bCheckLink)
oStyle.Set_Next(oOldStyle.Get_Next()); oStyle.Set_Next(oOldStyle.Get_Next());
this.Remove(OldId); this.Remove(OldId);
this.RemapIdReferences(OldId, oStyle.GetId()); this.RemapIdReferences(OldId, oStyle.GetId());
var oLogicDocument = editor.WordControl.m_oLogicDocument;
if (oLogicDocument)
{
var arrParagraphs = oLogicDocument.Get_AllParagraphsByStyle([OldId]);
for (var nIndex = 0, nCount = arrParagraphs.length; nIndex < nCount; ++nIndex)
{
arrParagraphs[nIndex].Style_Add(oStyle.GetId(), true);
}
}
} }
oStyle.Set_Name(sStyleName); oStyle.Set_Name(sStyleName);
......
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